mirror of
https://github.com/m1ngsama/tracker.git
synced 2025-12-24 10:51:43 +00:00
Fix CPU usage calculation parameter
This commit is contained in:
parent
2551bb0baf
commit
bf56c84e66
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ class SystemTracker:
|
|||
|
||||
def get_cpu_usage(self):
|
||||
"""Get current CPU usage percentage"""
|
||||
return psutil.cpu_percent(interval=1)
|
||||
return psutil.cpu_percent(interval=1, percpu=False)
|
||||
|
||||
def get_memory_info(self):
|
||||
"""Get memory usage statistics"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue