From: Florin Coras Date: Wed, 5 Aug 2020 05:45:45 +0000 (-0700) Subject: vcl: fix epoll timeout X-Git-Tag: v21.01-rc0~136 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=0edfb1a06ed093c5ed82be34b42b8cacc3ac0ff8;p=vpp.git vcl: fix epoll timeout Type: fix Signed-off-by: Florin Coras Change-Id: I917158a62e5881b97917c3339527d3c34c37565a --- diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index f3919499bb2..fd9136aa9fc 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -2967,7 +2967,7 @@ vppcom_epoll_wait_condvar (vcl_worker_t * wrk, struct epoll_event *events, continue; now = clib_time_now (&wrk->clib_time); - wait -= now - start; + wait -= (now - start) * 1e3; start = now; } while (wait > 0);