@cryptotaxi247 / netdata-1 / commits / 98c66eb59

fix wrongly calculated run time

paulfantom committed Jun 10, 2016 at 15:44 UTC 98c66eb599ce822421dc7f3e9105bdf41f42eb15
1 file changed +2 -2
plugins.d/python.d.plugin
+2 -2
@@ -106,7 +106,7 @@ class PythonCharts(object):
106 def update_module(self,mod):
107 t1 = time.time()
108 try:
109 -# t=int((t1- self.timetable[mod.__name__]) * 1000000)
109 +# t=int((t1- self.timetable[mod.__name__]) * 1000)
110 # if t == 0: t=""
111 t = "" #FIXME
112 if not mod.update(t):
@@ -124,7 +124,7 @@ class PythonCharts(object):
124 # if dt == 0: dt=""
125 dt="" #FIXME
126 sys.stdout.write("BEGIN netdata.plugin_pythond_"+mod.__name__+" "+str(dt)+'\n')
127 - sys.stdout.write("SET run_time = "+str(int((t2 - t1))*1000)+'\n')
127 + sys.stdout.write("SET run_time = "+str(int((t2 - t1)*1000))+'\n')
128 sys.stdout.write("END\n")
129 sys.stdout.flush()
130 self.timetable[mod.__name__] = t1