fix a corner case in timer wheel processing
authorHannes Gredler <hannes@gredler.at>
Sun, 18 May 2008 09:18:42 +0000 (11:18 +0200)
committerHannes Gredler <hannes@gredler.at>
Sun, 18 May 2008 09:18:42 +0000 (11:18 +0200)
src/scheduler.c

index 9b65e80..2df1f03 100644 (file)
@@ -417,6 +417,11 @@ olsr_walk_timers(clock_t *last_run)
               total_timers_walked, timers_running, total_timers_fired);
 #endif
 
+  /*
+   * If the scheduler has slipped and we have walked all wheel slots,
+   * reset the last timer run.
+   */
+  *last_run = now_times;
 }
 
 /**