use less cpu
This commit is contained in:
parent
e4da76cdd9
commit
5c693601a5
|
@ -139,6 +139,7 @@ class MonitorThread(Thread):
|
||||||
if time() - self.lastRun > self.delay:
|
if time() - self.lastRun > self.delay:
|
||||||
self.lastRun = time()
|
self.lastRun = time()
|
||||||
self.execute(self.config["args"])
|
self.execute(self.config["args"])
|
||||||
|
sleep(0.5)
|
||||||
self.logger.info("scheduler exited")
|
self.logger.info("scheduler exited")
|
||||||
|
|
||||||
def execute(self, args):
|
def execute(self, args):
|
||||||
|
|
Loading…
Reference in New Issue