diff web/log.py @ 95:fd9cfa6829fd

fix rem calculation
author Matt Johnston <matt@ucc.asn.au>
date Mon, 16 Jul 2012 22:01:33 +0800
parents 229b740a607f
children 1a88bb989afb
line wrap: on
line diff
--- a/web/log.py	Mon Jul 16 21:50:39 2012 +0800
+++ b/web/log.py	Mon Jul 16 22:01:33 2012 +0800
@@ -160,7 +160,7 @@
 
 def time_rem(name, entries):
     val_ticks = int(entries[name])
-    val_rem = int(entries[name])
+    val_rem = int(entries['%s_rem' % name])
     tick_wake = int(entries['tick_wake'])
     tick_secs = int(entries['tick_secs'])
     return val_ticks + float(val_rem) * tick_secs / tick_wake