aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/monitor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/monitor.py b/src/monitor.py
index ac625e6..7923103 100644
--- a/src/monitor.py
+++ b/src/monitor.py
@@ -434,7 +434,7 @@ class Monitor:
else:
curtime = int(time.time())
uptime = curtime - uptime
- hours = uptime / 3600
- mins = (uptime - (hours * 3600)) / 60
+ hours = uptime // 3600
+ mins = (uptime - (hours * 3600)) // 60
secs = uptime % 60
return _("%(hours)d hours, %(mins)d minutes, %(secs)d seconds") % {"hours" : hours, "mins" : mins, "secs" : secs}