[Treepkg-commits] r453 - trunk/contrib/sawmill/web/templates

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Oct 2 12:09:06 CEST 2010


Author: teichmann
Date: 2010-10-02 12:09:05 +0200 (Sat, 02 Oct 2010)
New Revision: 453

Modified:
   trunk/contrib/sawmill/web/templates/details.html
Log:
sawmill: fixed stupid time calc bug

Modified: trunk/contrib/sawmill/web/templates/details.html
===================================================================
--- trunk/contrib/sawmill/web/templates/details.html	2010-09-30 22:51:45 UTC (rev 452)
+++ trunk/contrib/sawmill/web/templates/details.html	2010-10-02 10:09:05 UTC (rev 453)
@@ -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



More information about the Treepkg-commits mailing list