From 987bc01a734cb3b43e47c25c0ae86a3e3cb46f54 Mon Sep 17 00:00:00 2001 From: Nicolargo Date: Sat, 16 Aug 2014 15:14:07 +0200 Subject: Correct bug on extended memory info if swap did not exist --- glances/plugins/glances_processlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glances/plugins/glances_processlist.py b/glances/plugins/glances_processlist.py index 8cd4e2ef..2636a0ed 100644 --- a/glances/plugins/glances_processlist.py +++ b/glances/plugins/glances_processlist.py @@ -259,7 +259,7 @@ class Plugin(GlancesPlugin): msg += k + ' ' + self.auto_unit(v, low_precision=False) + ' ' if p['memory_swap'] is not None: msg += _('swap ') + self.auto_unit(p['memory_swap'], low_precision=False) - ret.append(self.curse_add_line(msg)) + ret.append(self.curse_add_line(msg)) # Third line is for openned files/network sessions ret.append(self.curse_new_line()) msg = xpad + _('Openned: ') -- cgit v1.2.3