aboutsummaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-02-21 19:26:51 -0800
committerDave Barach <openvpp@barachs.net>2017-02-22 12:55:05 +0000
commit954898f9453032e3d08326b946f6d7007cf39610 (patch)
tree2ab9d0e9f272c580b194e8b1c14ee8da99c03263 /src/vppinfra
parentd45602078d01fb37cd9bb06d203dd3946b872c09 (diff)
Fix last run time update for timer wheel
Change-Id: I9ac04b15440297c154ed1e3fba888915044cb245 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/tw_timer_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/tw_timer_template.c b/src/vppinfra/tw_timer_template.c
index 436dd4e1..e3f44500 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;
}