]> arthur.barton.de Git - netdata.git/commitdiff
formatting + typo
authorpaulfantom <paulfantom@gmail.com>
Wed, 22 Jun 2016 16:29:41 +0000 (18:29 +0200)
committerpaulfantom <paulfantom@gmail.com>
Wed, 22 Jun 2016 16:29:41 +0000 (18:29 +0200)
plugins.d/python.d.plugin
python.d/apache.chart.py
python.d/phpfpm.chart.py

index 0407a480893bfae04a67a3148b6193afeaf7ea54..f1aba16cb35146642f14aa25ba63776b259f0d23 100755 (executable)
@@ -198,8 +198,8 @@ class PythonCharts(object):
             # scan directory specified in path and load all modules from there
             names = os.listdir(path)
             for mod in names:
-                if mod.replace(MODULE_EXTENSION,"") in disabled:
-                    error(mod + ": disabled module ", mod.replace(MODULE_EXTENSION,""))
+                if mod.replace(MODULE_EXTENSION, "") in disabled:
+                    error(mod + ": disabled module ", mod.replace(MODULE_EXTENSION, ""))
                     continue
                 m = self._import_module(path + mod)
                 if m is not None:
index b69972f338dd2d43452050595b6529fca27c3a8b..2de62b7e78c246f3db8e80ad1029cad6bafbaab6 100644 (file)
@@ -42,7 +42,7 @@ CHARTS = {
              "options": "'' absolute 1 1000000"}
         ]},
     'bytespersec': {
-        'options': "'' 'apache Lifetime Avg. Bandwidth/s' 'kilbits/s' statistics apache.bytesperreq area",
+        'options': "'' 'apache Lifetime Avg. Bandwidth/s' 'kilobits/s' statistics apache.bytesperreq area",
         'lines': [
             {"name": "size_sec",
              "options": "'' absolute 8 1000000000"}
index 2e7ef6b7dc5b06c7beb5c9db2b48a3ebef34c488..f75faaca998b0010ea8011627f62745899e1bfab 100755 (executable)
@@ -75,7 +75,7 @@ class Service(UrlService):
             if str(tmp[0]) in self.assignment:
                 try:
                     data[self.assignment[tmp[0]]] = int(tmp[1])
-                except (IndexError, ValueError) as a:
+                except (IndexError, ValueError):
                     pass
         if len(data) == 0:
             return None