Mercurial > templog
changeset 100:9485da05bc11
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 17 Jul 2012 21:59:55 +0800 |
parents | dbcbda1e2da2 (current diff) 1a88bb989afb (diff) |
children | 68a44d0ec599 |
files | server/ts.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/server/ts.py Mon Jul 16 22:58:33 2012 +0800 +++ b/server/ts.py Tue Jul 17 21:59:55 2012 +0800 @@ -110,7 +110,7 @@ rem = int(toks['rem']) tick_secs = int(toks['tick_secs']) - tick_wake = int(toks['tick_wake']) + tick_wake = int(toks['tick_wake']) + 1 next_wake = int(toks['next_wake']) rem_secs = float(rem) / tick_wake * tick_secs
--- a/web/log.py Mon Jul 16 22:58:33 2012 +0800 +++ b/web/log.py Tue Jul 17 21:59:55 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