Migrate the swao plugin to PsUtil 2.0

pull/354/head
Nicolas Hennion 2014-03-12 21:53:02 +01:00
parent 060de6439f
commit 7c75dc66d4
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,8 @@ class Plugin(GlancesPlugin):
ret.append(self.curse_add_line(msg))
msg = "{0}".format(format(self.auto_unit(self.stats['used'], '>6')))
ret.append(self.curse_add_line(
msg, self.get_alert_log(self.stats['used'], max=self.stats['total'])))
msg, self.get_alert_log(self.stats['used'],
ax=self.stats['total'])))
# New line
ret.append(self.curse_new_line())
# Free memory usage