+ time_slot = int(time_now) // args.interval_size
+ time_slot_diff = time_slot - last_time_slot
+ last_time_slot = time_slot
+
+ 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