From 67cdc5ae06adafffca3072bda5919907e9b4e010 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 8 Sep 2019 20:44:20 +0200 Subject: Fix displaying Connection time (hours and minutes were always zero) --- src/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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} -- cgit v1.2.1