From 7a5a74fe33b30b7bf09a37eb52c2e90883746343 Mon Sep 17 00:00:00 2001 From: gunu3371 <55932910+gunu3371@users.noreply.github.com> Date: Sun, 14 Jul 2024 01:48:24 +0900 Subject: [PATCH] Update service.py --- service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service.py b/service.py index 23784c8..dcb03ed 100755 --- a/service.py +++ b/service.py @@ -119,9 +119,9 @@ while not killer.kill_now: log.warn('AC power loss') pw = int(ups.get_curvol()) if pw <= 3500: + log.crit('battery is too low Shut down system') ups.shutdown() os.system("shutdown now") - log.crit('battery is too low Shut down system') elif pw <= 3650: log.crit('battery is too low') elif pw <= 3800: