change service monitor to use the instantaneous load rather than the 5 minute average

This commit is contained in:
KeyserSosa
2009-05-26 10:49:16 -07:00
parent c3b894f263
commit fab25c5720

View File

@@ -340,7 +340,7 @@ class HostLogger(object):
foo = ShellProcess('/usr/bin/env uptime').read()
foo = foo.split("load average")[1].split(':')[1].strip(' ')
self.load.add(float(foo.split(' ')[1].strip(',')))
self.load.add(float(foo.split(' ')[0].strip(',')))
self.clean_dead()