@cryptotaxi247 / netdata-1 / commits / 889075836

formatting + typo

paulfantom committed Jun 22, 2016 at 18:29 UTC 889075836859d1708c76f71b8482f94ec4fc4d58
3 files changed +4 -4
plugins.d/python.d.plugin
+2 -2
@@ -198,8 +198,8 @@ class PythonCharts(object):
198 # scan directory specified in path and load all modules from there
199 names = os.listdir(path)
200 for mod in names:
201 - if mod.replace(MODULE_EXTENSION,"") in disabled:
202 - error(mod + ": disabled module ", mod.replace(MODULE_EXTENSION,""))
201 + if mod.replace(MODULE_EXTENSION, "") in disabled:
202 + error(mod + ": disabled module ", mod.replace(MODULE_EXTENSION, ""))
203 continue
204 m = self._import_module(path + mod)
205 if m is not None:
python.d/apache.chart.py
+1 -1
@@ -42,7 +42,7 @@ CHARTS = {
42 "options": "'' absolute 1 1000000"}
43 ]},
44 'bytespersec': {
45 - 'options': "'' 'apache Lifetime Avg. Bandwidth/s' 'kilbits/s' statistics apache.bytesperreq area",
45 + 'options': "'' 'apache Lifetime Avg. Bandwidth/s' 'kilobits/s' statistics apache.bytesperreq area",
46 'lines': [
47 {"name": "size_sec",
48 "options": "'' absolute 8 1000000000"}
python.d/phpfpm.chart.py
+1 -1
@@ -75,7 +75,7 @@ class Service(UrlService):
75 if str(tmp[0]) in self.assignment:
76 try:
77 data[self.assignment[tmp[0]]] = int(tmp[1])
78 - except (IndexError, ValueError) as a:
78 + except (IndexError, ValueError):
79 pass
80 if len(data) == 0:
81 return None