set random to be at least 5 minutes
This commit is contained in:
parent
bf59ed34cf
commit
22f4504629
@ -32,7 +32,7 @@ class PskReporter(object):
|
|||||||
threading.Thread(target=self.scheduler.run).start()
|
threading.Thread(target=self.scheduler.run).start()
|
||||||
|
|
||||||
def scheduleNextUpload(self):
|
def scheduleNextUpload(self):
|
||||||
delay = PskReporter.interval + random.uniform(-30, 30)
|
delay = PskReporter.interval + random.uniform(0, 30)
|
||||||
logger.debug("scheduling next pskreporter upload in %f seconds", delay)
|
logger.debug("scheduling next pskreporter upload in %f seconds", delay)
|
||||||
self.scheduler.enter(delay, 1, self.upload)
|
self.scheduler.enter(delay, 1, self.upload)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user