Compare commits

...

2 Commits

Author SHA1 Message Date
d61adc231e .. 2025-10-02 22:26:33 +02:00
917d883d51 sono stupido 2025-10-02 22:22:57 +02:00

View File

@@ -65,7 +65,10 @@ def main() -> int:
if_stats_old = if_stats
LOGGER.debug(f"\nInterfaces: {json.dumps(if_stats, indent = 2)}")
LOGGER.debug(f"\nResources: {json.dumps(hw_stats, indent = 2)}")
time.sleep(INTERVAL-(last-now))
last: float = time.time()
cycle_time: float = last - now
LOGGER.debug(f"Cycle Time: {cycle_time:4.3f}")
time.sleep(INTERVAL-cycle_time)
except Exception as e:
print(f"Unexpected exception: [{e}]")
return 1