Browse Source

Add max CPU percentage

tags/nilmrun-1.2.1^0
Jim Paris 10 years ago
parent
commit
f5225f88f9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      nilmrun/processmanager.py

+ 1
- 0
nilmrun/processmanager.py View File

@@ -239,6 +239,7 @@ class ProcessManager(object):

# Retrieve info for system
info["system"]["cpu_percent"] = sum(psutil.cpu_percent(0, percpu=True))
info["system"]["cpu_max"] = 100.0 * psutil.NUM_CPUS
info["system"]["procs"] = len(psutil.get_pid_list())
# psutil > 0.6.0's psutil.virtual_memory() would be better here,
# but this should give the same info.


Loading…
Cancel
Save