]> arthur.barton.de Git - netdata.git/commitdiff
fix mysql update_every
authorpaulfantom <paulfantom@gmail.com>
Tue, 21 Jun 2016 09:56:30 +0000 (11:56 +0200)
committerpaulfantom <paulfantom@gmail.com>
Tue, 21 Jun 2016 09:56:30 +0000 (11:56 +0200)
plugins.d/python.d.plugin
python.d/mysql.chart.py

index ac37eb3dc1a3c9026a2bb4beeca63e41b634d1c3..76c2bb11a5c546ac07e34503d0560fe909c0dd85 100755 (executable)
@@ -517,7 +517,7 @@ def parse_cmdline(directory, *commands):
     debug("started from", commands[0], "with options:", *commands[1:])
 
     UPDATE_EVERY = update_every
-    return {'modules': mods}
+    return mods
 
 
 # if __name__ == '__main__':
index 22aa8f5eacc8e13a833809fe03fbcb4bc0452590..5ea3dd2922ff3c124175fd0661e6dcf5834c2ff4 100644 (file)
@@ -384,7 +384,7 @@ class Service(BaseService):
                                               unix_socket=self.configuration['socket'],
                                               host=self.configuration['host'],
                                               port=self.configuration['port'],
-                                              connect_timeout=self.configuration['update_every'])
+                                              connect_timeout=self.update_every)
         except Exception as e:
             self.error(NAME + " has problem connecting to server:", e)
             raise RuntimeError