From 7855f04eed6c1c856571b4a8bd550cf5fb7a5d4d Mon Sep 17 00:00:00 2001 From: gunu3371 <55932910+gunu3371@users.noreply.github.com> Date: Sun, 14 Jul 2024 01:45:25 +0900 Subject: [PATCH] Update service.py --- service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service.py b/service.py index 0b2026a..23784c8 100755 --- a/service.py +++ b/service.py @@ -122,10 +122,10 @@ while not killer.kill_now: ups.shutdown() os.system("shutdown now") log.crit('battery is too low Shut down system') - elif pw <= 3800: - log.warn('battery is low') elif pw <= 3650: log.crit('battery is too low') + elif pw <= 3800: + log.warn('battery is low') elif ps == "err": log.crit('UPS hardware error detect')