Mercurial > templog
diff web/log.py @ 99:1a88bb989afb
fix off-by-one in remainder code
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 17 Jul 2012 21:58:49 +0800 |
parents | fd9cfa6829fd |
children | fd8482365489 |
line wrap: on
line diff
--- a/web/log.py Mon Jul 16 22:01:33 2012 +0800 +++ b/web/log.py Tue Jul 17 21:58:49 2012 +0800 @@ -161,7 +161,7 @@ def time_rem(name, entries): val_ticks = int(entries[name]) val_rem = int(entries['%s_rem' % name]) - tick_wake = int(entries['tick_wake']) + tick_wake = int(entries['tick_wake']) + 1 tick_secs = int(entries['tick_secs']) return val_ticks + float(val_rem) * tick_secs / tick_wake