mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-12-04 11:47:17 +00:00
Merge branch 'newModuleInformation' into production
This commit is contained in:
commit
dadc872f9f
1 changed files with 6 additions and 0 deletions
|
@ -644,6 +644,12 @@ def fetchQueueData():
|
||||||
if len(CPU_TABLE[moduleNum]) > args.refresh*10:
|
if len(CPU_TABLE[moduleNum]) > args.refresh*10:
|
||||||
CPU_TABLE[moduleNum].pop()
|
CPU_TABLE[moduleNum].pop()
|
||||||
mem_percent = CPU_OBJECT_TABLE[int(moduleNum)].memory_percent()
|
mem_percent = CPU_OBJECT_TABLE[int(moduleNum)].memory_percent()
|
||||||
|
except psutil.NoSuchProcess:
|
||||||
|
del CPU_OBJECT_TABLE[int(moduleNum)]
|
||||||
|
del CPU_TABLE[moduleNum]
|
||||||
|
cpu_percent = 0
|
||||||
|
cpu_avg = cpu_percent
|
||||||
|
mem_percent = 0
|
||||||
except KeyError:
|
except KeyError:
|
||||||
try:
|
try:
|
||||||
CPU_OBJECT_TABLE[int(moduleNum)] = psutil.Process(int(moduleNum))
|
CPU_OBJECT_TABLE[int(moduleNum)] = psutil.Process(int(moduleNum))
|
||||||
|
|
Loading…
Reference in a new issue