mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
Status: @cpu was giving a wrong value for the memory use (1024 times lower).
This commit is contained in:
parent
6b0e5303b4
commit
41e5c26e52
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user