From 41e5c26e52b2410c0856c3844a2fa6d9f9cbff5b Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 22 Jan 2012 11:33:23 +0100 Subject: [PATCH] Status: @cpu was giving a wrong value for the memory use (1024 times lower). --- plugins/Status/plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Status/plugin.py b/plugins/Status/plugin.py index 1d26c4cbb..793775055 100644 --- a/plugins/Status/plugin.py +++ b/plugins/Status/plugin.py @@ -163,7 +163,8 @@ class Status(callbacks.Plugin): mem = int(out.splitlines()[1]) elif sys.platform.startswith('netbsd'): mem = int(os.stat('/proc/%s/mem' % pid)[7]) - response += format(_(' I\'m taking up %S of memory.'), mem) + response += format(_(' I\'m taking up %S of memory.'), + mem*1024) except Exception: self.log.exception('Uncaught exception in cpu.memory:') irc.reply(utils.str.normalizeWhitespace(response))