summaryrefslogtreecommitdiffstats
path: root/monitorplugins/disk.py
diff options
context:
space:
mode:
Diffstat (limited to 'monitorplugins/disk.py')
-rw-r--r--monitorplugins/disk.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/monitorplugins/disk.py b/monitorplugins/disk.py
index f2844e8..16262ab 100644
--- a/monitorplugins/disk.py
+++ b/monitorplugins/disk.py
@@ -34,7 +34,7 @@ class DiskMonitor:
self.devices[d]["max"] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
self.__updateStat__(d)
self.devices[d]["max"] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
- #print self.devices
+ print self.devices
def __calcdiff__(self, dev):
@@ -56,7 +56,10 @@ class DiskMonitor:
for dev in self.devices.keys():
self.__updateStat__(dev)
self.devices[dev]["diff"] = self.__calcdiff__(dev)
-
+
+ def init(self, config):
+ self.config = config
+
def getLoad(self):
self.__update__()
ret = {}