import tuned.monitors class LoadMonitor(tuned.monitors.Monitor): @classmethod def _init_available_devices(cls): cls._available_devices = set(["system"]) @classmethod def update(cls): with open("/proc/loadavg") as statfile: data = statfile.read().split() cls._load["system"] = float(data[0])
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.__init__.pyo.40009 | File | 208 B | 0644 |
|
.monitor_disk.pyo.40009 | File | 1.89 KB | 0644 |
|
.monitor_load.pyo.40009 | File | 1.01 KB | 0644 |
|
.monitor_net.pyo.40009 | File | 1.96 KB | 0644 |
|
__init__.py | File | 46 B | 0644 |
|
__init__.pyc | File | 208 B | 0644 |
|
__init__.pyo | File | 208 B | 0644 |
|
base.py | File | 2.85 KB | 0644 |
|
base.pyc | File | 5.2 KB | 0644 |
|
base.pyo | File | 4.99 KB | 0644 |
|
monitor_disk.py | File | 886 B | 0644 |
|
monitor_disk.pyc | File | 1.89 KB | 0644 |
|
monitor_disk.pyo | File | 1.89 KB | 0644 |
|
monitor_load.py | File | 306 B | 0644 |
|
monitor_load.pyc | File | 1.01 KB | 0644 |
|
monitor_load.pyo | File | 1.01 KB | 0644 |
|
monitor_net.py | File | 1.14 KB | 0644 |
|
monitor_net.pyc | File | 1.96 KB | 0644 |
|
monitor_net.pyo | File | 1.96 KB | 0644 |
|
repository.py | File | 831 B | 0644 |
|
repository.pyc | File | 1.92 KB | 0644 |
|
repository.pyo | File | 1.86 KB | 0644 |
|