%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/landscape/sysinfo/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/landscape/sysinfo/load.py

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)

Zerion Mini Shell 1.0