From 60427c950abf498429c7a0c198a4a4db52bd3ed2 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Tue, 13 Aug 2024 18:52:03 +0300 Subject: [PATCH] typo --- shutdown_ups.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shutdown_ups.py b/shutdown_ups.py index 729cfe7..b6a3508 100644 --- a/shutdown_ups.py +++ b/shutdown_ups.py @@ -88,7 +88,7 @@ def main(): if result is None: continue battery_percent = int(result) - print(f"UPS percent: {battery_percent}, time on battery: {time_on_battery} minutes, state: {state}", flush=True) + print(f"Batterry {battery_percent}%, {state}, estimated time on battery: {time_on_battery} minutes", flush=True) shutdown_status = run_command('shutdown --show') @@ -106,4 +106,3 @@ def main(): if __name__ == "__main__": print("Starting UPS monitoring...", flush=True) main() - \ No newline at end of file