server/info: increase hdd usage cache time to 48h

This commit is contained in:
rr- 2016-08-31 22:22:06 +02:00
parent 988664117a
commit eff0e002f2
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ _cache_result = None
def _get_disk_usage():
global _cache_time, _cache_result # pylint: disable=global-statement
threshold = datetime.timedelta(hours=1)
threshold = datetime.timedelta(hours=48)
now = datetime.datetime.utcnow()
if _cache_time and _cache_time > now - threshold:
return _cache_result