mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
only need the short sleep in cpu_load if not specifying a tag
This commit is contained in:
@ -91,7 +91,7 @@ def cpu_load(tag=None):
|
||||
parts0 = _cpu_stats[tag]
|
||||
else:
|
||||
parts0 = _cpu_stat()
|
||||
time.sleep(0.1)
|
||||
time.sleep(0.1)
|
||||
parts1 = _cpu_stat()
|
||||
if tag: _cpu_stats[tag] = parts1
|
||||
|
||||
|
Reference in New Issue
Block a user