Skip to content
Snippets Groups Projects
Commit 1b506a64 authored by Florent Thiery's avatar Florent Thiery
Browse files

round up backup age

parent 96eac592
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ def check_local_backup(path):
now = datetime.now()
diff_seconds = (now - d).total_seconds()
if diff_seconds > 48*3600:
print('Backup %s is older than 48h (%sh)' % (backup_folder, diff_seconds/3600))
print('Backup %s is older than 48h (%ih)' % (backup_folder, diff_seconds/3600))
all_ok = False
else:
print('Backup %s is fine' % backup_folder)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment