vcl: fix epoll timeout 73/28173/1
authorFlorin Coras <fcoras@cisco.com>
Wed, 5 Aug 2020 05:45:45 +0000 (22:45 -0700)
committerFlorin Coras <fcoras@cisco.com>
Wed, 5 Aug 2020 05:45:45 +0000 (22:45 -0700)
Type: fix

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I917158a62e5881b97917c3339527d3c34c37565a

src/vcl/vppcom.c

index f391949..fd9136a 100644 (file)
@@ -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);