changeset 493:e075ce66e085

sawmill: fixed stupid time calc bug
author Sascha Teichmann <teichmann@intevation.de>
date Sat, 02 Oct 2010 10:09:05 +0000
parents 93d66243bce7
children 31b64ebe4b42
files contrib/sawmill/web/templates/details.html
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/sawmill/web/templates/details.html	Thu Sep 30 22:51:45 2010 +0000
+++ b/contrib/sawmill/web/templates/details.html	Sat Oct 02 10:09:05 2010 +0000
@@ -34,11 +34,11 @@
     td = a - b
     secs = td.days * 24*3600 + td.seconds
     out = []
-    if secs > 3600:
+    if secs >= 3600:
         hs = secs // 3600
         out.append("%dh" % hs)
         secs %= 3600
-    if secs > 60:
+    if secs >= 60:
         ms = secs // 60
         out.append("%dm" % ms)
         secs %= 60
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)