diff --git a/.idea/workspace.xml b/.idea/workspace.xml index db74ae8..66ad3cb 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,6 @@ - @@ -29,7 +28,7 @@ - + @@ -222,7 +221,7 @@ - + @@ -230,7 +229,7 @@ - + @@ -361,7 +360,7 @@ - + diff --git a/backup/src/backup.py b/backup/src/backup.py index 1de1d6a..8b62b18 100644 --- a/backup/src/backup.py +++ b/backup/src/backup.py @@ -127,7 +127,7 @@ def find_hours_since_last_backup(conn, instance): latest_time = utils.get_time(latest_snapshot.start_time) now_utc = utils.get_current_utc_time() diff = now_utc - latest_time - diff_hours = diff.seconds / 3600 + diff.days * 24 + diff_hours = diff.total_seconds() * 3600 print "Latest snapshot is from {}, which is {} hours ago".format(latest_time, diff_hours) return diff_hours