mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
athenad: move last_scan outside the loop (#34099)
move last_scan outside the loop
This commit is contained in:
@@ -629,8 +629,9 @@ def log_handler(end_event: threading.Event) -> None:
|
||||
|
||||
def stat_handler(end_event: threading.Event) -> None:
|
||||
STATS_DIR = Paths.stats_root()
|
||||
last_scan = 0.0
|
||||
|
||||
while not end_event.is_set():
|
||||
last_scan = 0.
|
||||
curr_scan = time.monotonic()
|
||||
try:
|
||||
if curr_scan - last_scan > 10:
|
||||
|
||||
Reference in New Issue
Block a user