fix cache age check
This commit is contained in:
parent
6c1130c848
commit
343daa4929
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ class BackupImap:
|
|||
cached_data = json.load(cache_file)
|
||||
if (
|
||||
'last_update' in cached_data and
|
||||
cached_data['last_update'] + self.config['max_cache_age'] > time.time()
|
||||
cached_data['last_update'] + self.config['max_cache_age'] < time.time()
|
||||
):
|
||||
self._log.debug(
|
||||
"Data in cache file '%s' is too old (%s + %s > %s), initializing cache data.",
|
||||
|
|
Loading…
Reference in a new issue