typo
This commit is contained in:
parent
330105a5a4
commit
60427c950a
@ -88,7 +88,7 @@ def main():
|
|||||||
if result is None: continue
|
if result is None: continue
|
||||||
battery_percent = int(result)
|
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')
|
shutdown_status = run_command('shutdown --show')
|
||||||
|
|
||||||
@ -106,4 +106,3 @@ def main():
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print("Starting UPS monitoring...", flush=True)
|
print("Starting UPS monitoring...", flush=True)
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user