提交 fbe3a3b0 编写于 作者: N nicolargo

Merge branch 'issue1092' into develop

......@@ -19,6 +19,7 @@ Bugs corrected:
* Problem with non breaking space in file system name (issue #1065)
* TypeError: string indices must be integers (Network plugin) (issue #1054)
* No Offline status for timeouted ports? (issue #1084)
* When exporting, uptime values loop after 1 day (issue #1092)
Version 2.9.1
=============
......
......@@ -59,7 +59,9 @@ class Plugin(GlancesPlugin):
Export uptime in seconds.
"""
return {'seconds': self.uptime.seconds}
# Convert the delta time to seconds (with cast)
# Correct issue #1092 (thanks to @IanTAtWork)
return {'seconds': int(self.uptime.total_seconds())}
@GlancesPlugin._check_decorator
@GlancesPlugin._log_result_decorator
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册