A bit more precise name for the polling interval
This commit is contained in:
parent
c6c2f1574d
commit
96078f29de
|
@ -45,7 +45,7 @@ class Execute(CommandContainer):
|
||||||
|
|
||||||
DIRECTORY = "~"
|
DIRECTORY = "~"
|
||||||
|
|
||||||
POLL_TIME = 100
|
POLL_INTERVAL = 100
|
||||||
POLL_COUNT = 5
|
POLL_COUNT = 5
|
||||||
|
|
||||||
@command("exec", raw=True)
|
@command("exec", raw=True)
|
||||||
|
@ -63,7 +63,7 @@ class Execute(CommandContainer):
|
||||||
@classmethod
|
@classmethod
|
||||||
def monitor(cls, processor, popen):
|
def monitor(cls, processor, popen):
|
||||||
poller = cls.poller(processor, popen)
|
poller = cls.poller(processor, popen)
|
||||||
timeout_add(cls.POLL_TIME, poller.next)
|
timeout_add(cls.POLL_INTERVAL, poller.next)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poller(cls, processor, popen):
|
def poller(cls, processor, popen):
|
||||||
|
|
Loading…
Reference in New Issue