only need the short sleep in cpu_load if not specifying a tag

This commit is contained in:
Sniffleupagus
2023-06-18 20:06:00 -07:00
parent c52220d98e
commit 645846e44d

View File

@ -91,7 +91,7 @@ def cpu_load(tag=None):
parts0 = _cpu_stats[tag] parts0 = _cpu_stats[tag]
else: else:
parts0 = _cpu_stat() parts0 = _cpu_stat()
time.sleep(0.1) time.sleep(0.1)
parts1 = _cpu_stat() parts1 = _cpu_stat()
if tag: _cpu_stats[tag] = parts1 if tag: _cpu_stats[tag] = parts1