summaryrefslogtreecommitdiffstats
path: root/monitorplugins/net.py
diff options
context:
space:
mode:
authorPhilip Knirsch <pknirsch@hamburg.stuttgart.redhat.com>2009-02-25 11:45:48 +0100
committerPhilip Knirsch <pknirsch@hamburg.stuttgart.redhat.com>2009-02-25 11:45:48 +0100
commitca552606191920c1f6d02c28b80273d2e9d4349a (patch)
tree33d7eda5f5b7ffe1d842a2c9395ea2a03650d01a /monitorplugins/net.py
parent1fa57228447abc46d58bcc377ab373c026ccd008 (diff)
downloadtuned-ca552606191920c1f6d02c28b80273d2e9d4349a.tar.gz
tuned-ca552606191920c1f6d02c28b80273d2e9d4349a.tar.xz
tuned-ca552606191920c1f6d02c28b80273d2e9d4349a.zip
- Added complete cleanup code in case of tuned exiting and/or
getting a SIGTERM to restore default values - Made the disk tuning pluging less nosy if started as non-daemon - Fixed missing self. in the tuned.py config handling
Diffstat (limited to 'monitorplugins/net.py')
-rw-r--r--monitorplugins/net.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/monitorplugins/net.py b/monitorplugins/net.py
index caf8307..114f1f0 100644
--- a/monitorplugins/net.py
+++ b/monitorplugins/net.py
@@ -69,6 +69,9 @@ class NetMonitor:
for d in self.devices.keys():
self.devices[d]["max"] = [70*1024*1024*interval, 1, 70*1024*1024*interval, 1]
+ def cleanup(self):
+ pass
+
def getLoad(self):
self.__update__()
ret = {}