mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-24 17:51:49 +03:00
Add a condition to test if limits exist before the process sort
This commit is contained in:
parent
b4616f1457
commit
2fd4779f2b
@ -931,7 +931,7 @@ class GlancesStats:
|
|||||||
Return the sorted process list
|
Return the sorted process list
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if self.process == {}:
|
if (self.process == {}) or ('limits' not in globals()):
|
||||||
return self.process
|
return self.process
|
||||||
|
|
||||||
sortedReverse = True
|
sortedReverse = True
|
||||||
|
Loading…
Reference in New Issue
Block a user