Fix last run time update for timer wheel 59/5459/2
authorFlorin Coras <fcoras@cisco.com>
Wed, 22 Feb 2017 03:26:51 +0000 (19:26 -0800)
committerDave Barach <openvpp@barachs.net>
Wed, 22 Feb 2017 12:55:05 +0000 (12:55 +0000)
Change-Id: I9ac04b15440297c154ed1e3fba888915044cb245
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vppinfra/tw_timer_template.c

index 436dd4e..e3f4450 100644 (file)
@@ -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;
 }