misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-20 18:11:18 +02:00
parent 40c01db1d1
commit fbd12bf87b
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

View File

@ -55,6 +55,8 @@ def check(version, repo, native=True):
def on_internet_available(agent):
global STATUS
logging.debug("[update] internet connectivity is available (ready %s)" % READY)
if READY:
if STATUS.newer_then_hours(OPTIONS['interval']):
logging.debug("[update] last check happened less than %d hours ago" % OPTIONS['interval'])