From 954898f9453032e3d08326b946f6d7007cf39610 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 21 Feb 2017 19:26:51 -0800 Subject: [PATCH] Fix last run time update for timer wheel Change-Id: I9ac04b15440297c154ed1e3fba888915044cb245 Signed-off-by: Florin Coras --- src/vppinfra/tw_timer_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vppinfra/tw_timer_template.c b/src/vppinfra/tw_timer_template.c index 436dd4e1f66..e3f44500111 100644 --- a/src/vppinfra/tw_timer_template.c +++ b/src/vppinfra/tw_timer_template.c @@ -337,7 +337,7 @@ u32 TW (tw_timer_expire_timers) (TWT (tw_timer_wheel) * tw, f64 now) break; } - tw->last_run_time += i * tw->ticks_per_second; + tw->last_run_time += i * tw->timer_interval; return total_nexpirations; } -- 2.16.6