aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2019-09-08 20:44:20 +0200
committerPapoteur <papoteur@mageia.org>2019-09-08 20:44:39 +0200
commit67cdc5ae06adafffca3072bda5919907e9b4e010 (patch)
treed0c3a14dd225bbe5f42761e3bdca7bb5f6442164 /src
parent82ff9edf4383f7e8e49ea67ec741070e7dfc4297 (diff)
downloadnet_monitor-67cdc5ae06adafffca3072bda5919907e9b4e010.tar
net_monitor-67cdc5ae06adafffca3072bda5919907e9b4e010.tar.gz
net_monitor-67cdc5ae06adafffca3072bda5919907e9b4e010.tar.bz2
net_monitor-67cdc5ae06adafffca3072bda5919907e9b4e010.tar.xz
net_monitor-67cdc5ae06adafffca3072bda5919907e9b4e010.zip
Fix displaying Connection time (hours and minutes were always zero)
Diffstat (limited to 'src')
-rw-r--r--src/monitor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/monitor.py b/src/monitor.py
index f65ce9d..ed51223 100644
--- a/src/monitor.py
+++ b/src/monitor.py
@@ -399,4 +399,4 @@ class Monitor:
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}
+ return _("%(hours)d hours, %(mins)d minutes, %(secs)d seconds") % {"hours" : (int) hours, "mins" : (int) mins, "secs" : secs}