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
1 changed files with 1 additions and 1 deletions

View File

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