From defa59dfe26e01ce9b0af8b9680c1622300a4e92 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 10 Dec 2021 15:53:20 +0100 Subject: [PATCH] ice-status: fix int conversion --- .config/i3pystatus/ice-status.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/i3pystatus/ice-status.py b/.config/i3pystatus/ice-status.py index c1a79ca..c3a57e6 100755 --- a/.config/i3pystatus/ice-status.py +++ b/.config/i3pystatus/ice-status.py @@ -10,6 +10,7 @@ from sys import exit def format_time(seconds): if seconds is None: return "?" + seconds = int(seconds) components = [] if seconds >= 3600: hours = int(seconds / 3600) @@ -69,7 +70,7 @@ try: ice_status['speed'], next_stop, ice_status['connectivity']['currentState'], - format_time(int(ice_status['connectivity']['remainingTimeSeconds'])), + format_time(ice_status['connectivity']['remainingTimeSeconds']), ice_status['connectivity']['nextState'], )) except Exception as e: