Python 3.11 - Alpine + loop improvement

This commit is contained in:
2025-07-09 16:13:12 +00:00
parent 92edccd8d8
commit 66c4146223
3 changed files with 6 additions and 11 deletions

View File

@ -350,8 +350,10 @@ def check_rtx_50_founders():
if __name__ == "__main__":
try:
while True:
start = time.time()
check_rtx_50_founders()
time.sleep(REFRESH_TIME)
elapsed = time.time() - start
time.sleep(max(0, REFRESH_TIME - elapsed))
# Gracefully shut down
except KeyboardInterrupt: