Add a condition to test if limits exist before the process sort

This commit is contained in:
Nicolas Hennion 2012-12-21 15:04:30 +01:00
parent b4616f1457
commit 2fd4779f2b

View File

@ -931,7 +931,7 @@ class GlancesStats:
Return the sorted process list
"""
if self.process == {}:
if (self.process == {}) or ('limits' not in globals()):
return self.process
sortedReverse = True