summaryrefslogtreecommitdiffstats
path: root/python.d
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-11-15 00:05:25 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2016-11-15 00:05:25 +0200
commitf01aeea73a6dc2fbf2ad873b89402653b97b9fef (patch)
treec59d4f4f0ca44ac426dd32358229766c6d670169 /python.d
parent67500072b402045aac3fef4d0672cdfba42c53b0 (diff)
move core iteration point in the middle of the second, to give some tollerance to plugins
Diffstat (limited to 'python.d')
-rw-r--r--python.d/python_modules/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python.d/python_modules/base.py b/python.d/python_modules/base.py
index 4ab9de4cfd..9d428492c7 100644
--- a/python.d/python_modules/base.py
+++ b/python.d/python_modules/base.py
@@ -148,7 +148,7 @@ class SimpleService(threading.Thread):
self.debug("starting data collection - update frequency:", str(step), ", retries allowed:", str(self.retries))
while True: # run forever, unless something is wrong
now = float(time.time())
- next = self.timetable['next'] = now - (now % step) + step + (step / 3) # add 1/3 into the iteration to sync with netdata
+ next = self.timetable['next'] = now - (now % step) + step
# it is important to do this in a loop
# sleep() is interruptable