fix when interval is a string instead of an integer
This commit is contained in:
parent
8e6e18907c
commit
7708c497ab
1 changed files with 2 additions and 2 deletions
|
|
@ -61,8 +61,8 @@ class PriorityConnection(Optimization):
|
|||
if self.config is None:
|
||||
return False
|
||||
|
||||
self.check_cron = self.sched.repeat(self.config['interval'], self.check_godchilds)
|
||||
self.activity_cron = self.sched.repeat(300, self.activity_fakes)
|
||||
self.check_cron = self.sched.repeat(int(self.config['interval']), self.check_godchilds)
|
||||
self.activity_cron = self.sched.repeat(600, self.activity_fakes)
|
||||
return True
|
||||
|
||||
def stop(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue