mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
change service monitor to use the instantaneous load rather than the 5 minute average
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user