diff options
author | Nicolargo <nicolas@nicolargo.com> | 2014-08-16 15:14:07 +0200 |
---|---|---|
committer | Nicolargo <nicolas@nicolargo.com> | 2014-08-16 15:14:07 +0200 |
commit | 987bc01a734cb3b43e47c25c0ae86a3e3cb46f54 (patch) | |
tree | 7be8eae040e9df757b5ca9a4f49716873ac1877f | |
parent | 849052ec55fc0a76124cf19de8d64c361fa9d160 (diff) |
Correct bug on extended memory info if swap did not exist
-rw-r--r-- | glances/plugins/glances_processlist.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: ') |