From ae17970d8c30543d4415b2c4840a7d221213b81c Mon Sep 17 00:00:00 2001 From: Namonay Date: Wed, 25 Feb 2026 11:05:31 +0000 Subject: [PATCH] a --- client/bs_shutdown.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/bs_shutdown.py b/client/bs_shutdown.py index d283939..63015f5 100644 --- a/client/bs_shutdown.py +++ b/client/bs_shutdown.py @@ -53,10 +53,14 @@ def update(): LAST_VALUE = time subprocess.run(["shutdown", "/a"]) print("new val detected") + if (time == LAST_VALUE): + print("Nothing changed") + return print("shutting down in " + str(time - now) + " seconds") # subprocess.run(["shutdown", "/s", "/t", (time - now), " "]) print(time - now) if __name__ == '__main__': - update() - time.sleep(30) \ No newline at end of file + while True: + update() + time.sleep(30) \ No newline at end of file