- if line != None:
- if not last_slot_time or slot_now > last_slot_time:
- kept_times.append(slot_now)
- last_slot_time = slot_now
+ interval_ptr = (interval_ptr + time_slot_diff) % num_intervals
+ for i in range(0, min(num_intervals, time_slot_diff)):
+ intervals[(interval_ptr + i ) % num_intervals] = False
+
+ if line:
+ intervals[interval_ptr] = True