Skip to content

Commit

Permalink
Fix hours calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron Gross committed Dec 16, 2015
1 parent dfab2dd commit e4b9ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/src/backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.total_seconds() * 3600
diff_hours = diff.total_seconds() / 3600
print "Latest snapshot is from {}, which is {} hours ago".format(latest_time, diff_hours)
return diff_hours

Expand Down

0 comments on commit e4b9ec8

Please sign in to comment.