Compare commits
2 Commits
e3be103de6
...
d61adc231e
| Author | SHA1 | Date | |
|---|---|---|---|
| d61adc231e | |||
| 917d883d51 |
@@ -65,7 +65,10 @@ def main() -> int:
|
|||||||
if_stats_old = if_stats
|
if_stats_old = if_stats
|
||||||
LOGGER.debug(f"\nInterfaces: {json.dumps(if_stats, indent = 2)}")
|
LOGGER.debug(f"\nInterfaces: {json.dumps(if_stats, indent = 2)}")
|
||||||
LOGGER.debug(f"\nResources: {json.dumps(hw_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:
|
except Exception as e:
|
||||||
print(f"Unexpected exception: [{e}]")
|
print(f"Unexpected exception: [{e}]")
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user