comparison server/ts.py @ 100:9485da05bc11

merge
author Matt Johnston <matt@ucc.asn.au>
date Tue, 17 Jul 2012 21:59:55 +0800
parents b2d0887fb306 1a88bb989afb
children eecd2612a68e
comparison
equal deleted inserted replaced
98:dbcbda1e2da2 100:9485da05bc11
108 108
109 toks = dict(v.split('=') for v in l.split(',')) 109 toks = dict(v.split('=') for v in l.split(','))
110 110
111 rem = int(toks['rem']) 111 rem = int(toks['rem'])
112 tick_secs = int(toks['tick_secs']) 112 tick_secs = int(toks['tick_secs'])
113 tick_wake = int(toks['tick_wake']) 113 tick_wake = int(toks['tick_wake']) + 1
114 next_wake = int(toks['next_wake']) 114 next_wake = int(toks['next_wake'])
115 115
116 rem_secs = float(rem) / tick_wake * tick_secs 116 rem_secs = float(rem) / tick_wake * tick_secs
117 117
118 next_wake_secs = next_wake - rem_secs 118 next_wake_secs = next_wake - rem_secs