Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ripper234 committed Apr 2, 2011
1 parent ba9b282 commit dfab2dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.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

Expand Down

0 comments on commit dfab2dd

Please sign in to comment.