diff --git a/src/battery.py b/src/battery.py index 286e3ee..21738ca 100644 --- a/src/battery.py +++ b/src/battery.py @@ -174,10 +174,10 @@ def show_info(self, battery_info): external = battery_info['ExternalConnected'] if time_to_empty < 15000: - time_left = f'{round(time_to_empty/60)}:{round(time_to_empty%60)}' + time_left = f'{round(time_to_empty/60)}:{round(time_to_empty%60):02d}' if time_to_full < 15000: - time_full = f'{round(time_to_full/60)}:{round(time_to_full%60)}' + time_full = f'{round(time_to_full/60)}:{round(time_to_full%60):02d}' if charging: time_info = f'{time_full} until full'