import os

from twisted.internet.defer import succeed


class Load(object):

    def register(self, sysinfo):
        self._sysinfo = sysinfo

    def run(self):
        self._sysinfo.add_header("System load", str(os.getloadavg()[0]))
        return succeed(None)

[((13, 15, 13, 28), 'twisted.internet.defer.succeed', 'succeed', ({(13, 23, 13, 27): 'None'}, {}), '(None)', False, 'from twisted.internet.defer import succeed\n'), ((12, 52, 12, 67), 'os.getloadavg', 'os.getloadavg', ({}, {}), '()', False, 'import os\n')]