From 2fd4779f2bb59237800183eb3c5578c32a6750cb Mon Sep 17 00:00:00 2001 From: Nicolas Hennion Date: Fri, 21 Dec 2012 15:04:30 +0100 Subject: [PATCH] Add a condition to test if limits exist before the process sort --- glances/glances.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glances/glances.py b/glances/glances.py index cac1d257..25f5a278 100755 --- a/glances/glances.py +++ b/glances/glances.py @@ -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