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: