Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2215)

Unified Diff: appengine/findit/common/time_util.py

Issue 2397603002: [Findit] Cloud Endpoints API to receive reports on flakes. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/findit/common/time_util.py
diff --git a/appengine/findit/common/time_util.py b/appengine/findit/common/time_util.py
index daebcc115d2f9ca6bccd6607982afc20bf6739a6..6bdac18a85e904e3ea357253ec52f700f43829f4 100644
--- a/appengine/findit/common/time_util.py
+++ b/appengine/findit/common/time_util.py
@@ -33,7 +33,7 @@ def RemoveMicrosecondsFromDelta(delta):
def FormatTimedelta(delta):
if not delta:
return None
- hours, remainder = divmod(delta.seconds, 3600)
+ hours, remainder = divmod(delta.total_seconds(), 3600)
minutes, seconds = divmod(remainder, 60)
return '%02d:%02d:%02d' % (hours, minutes, seconds)

Powered by Google App Engine
This is Rietveld 408576698