aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/vnet/tcp/tcp_inlines.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp_inlines.h b/src/vnet/tcp/tcp_inlines.h
index cb18860b1b1..c4b155aa499 100644
--- a/src/vnet/tcp/tcp_inlines.h
+++ b/src/vnet/tcp/tcp_inlines.h
@@ -218,7 +218,8 @@ tcp_time_now_us (u32 thread_index)
always_inline u32
tcp_set_time_now (tcp_worker_ctx_t * wrk)
{
- wrk->time_now = clib_cpu_time_now () * tcp_main.tstamp_ticks_per_clock;
+ tcp_main_t *tm = &tcp_main;
+ wrk->time_now = (u64) (clib_cpu_time_now () * tm->tstamp_ticks_per_clock);
return wrk->time_now;
}