Permalink
Browse files

Some more corrections to plugins

  • Loading branch information...
1 parent 805ff51 commit 8b9e73918635a365719e4715cf1c218066bf448b @dcramer dcramer committed Feb 17, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 cpu.py
  2. +1 −1 processes.py
  3. +1 −1 varnish.py
View
4 cpu.py
@@ -10,6 +10,8 @@ def get_data(self):
if not os.path.exists(script):
return {}
+ os.sysconf(os.sysconf_names['SC_CLK_TCK'])
+
data = {}
with open(script, 'r') as f:
@@ -36,8 +38,6 @@ def format_data(self, data):
'softirq'
]
- # hz = os.sysconf(os.sysconf_names['SC_CLK_TCK'])
-
for key in data.iterkeys():
result.setdefault(key, {})
for pos in xrange(len(fields)):
View
@@ -46,7 +46,7 @@ def get_data(self):
return data
def format_data(self, data):
- result = copy.deepcopy(data.copy)
+ result = copy.deepcopy(data)
prev = self.prev_data
if data['processes']:
View
@@ -25,7 +25,7 @@ def get_data(self):
return data
def format_data(self, data):
- result = copy.deepcopy(data.copy)
+ result = copy.deepcopy(data)
prev = self.prev_data
for metric in data.iterkeys():

0 comments on commit 8b9e739

Please sign in to comment.