UPDATE_INTERVAL is in mins, not seconds

This commit is contained in:
JerryXiao 2019-04-09 16:33:25 +08:00
parent 081216660e
commit 85551c0265
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -124,7 +124,7 @@ class jobsManager:
''' '''
if not self.__buildjobs: if not self.__buildjobs:
# This part check for updates # This part check for updates
if time() - self.last_updatecheck <= UPDATE_INTERVAL: if time() - self.last_updatecheck <= UPDATE_INTERVAL * 60:
if not self.idle: if not self.idle:
logger.info('Buildbot is idling for package updates.') logger.info('Buildbot is idling for package updates.')
self.idle = True self.idle = True