Correct bug on extended memory info if swap did not exist

This commit is contained in:
Nicolargo 2014-08-16 15:14:07 +02:00
parent 849052ec55
commit 987bc01a73

View File

@ -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: ')