diff options
author | Pierre Pfister <ppfister@cisco.com> | 2017-04-04 15:55:21 +0100 |
---|---|---|
committer | Pierre Pfister <ppfister@cisco.com> | 2017-04-04 15:55:21 +0100 |
commit | ec06222ae189fe8d84b63410130fff04bf446573 (patch) | |
tree | c669fffa9092c328e2d64e4f0d570c7c45eb99a8 /src | |
parent | de9a7eacd5c86cc791fe72a6184c2a05fe7d3fda (diff) |
Fix typo in minimal epoll polling time
epoll was supposed to not sleep when timeout
is less than 1ms, but a typo made it not sleep
any time the requested timeout is lower than
1000 seconds (in practice, never...).
This patch replaces "1e3" with "1e-3", which
represents 1ms.
Change-Id: I731851b27a6bf6ab8e41586e017e94b962b09bf3
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vlib/unix/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/unix/input.c b/src/vlib/unix/input.c index 7b4183a4a70..73783d13c89 100644 --- a/src/vlib/unix/input.c +++ b/src/vlib/unix/input.c @@ -130,7 +130,7 @@ linux_epoll_input (vlib_main_t * vm, * vm->clib_time.seconds_per_clock) /* subtract off some slop time */ - 50e-6; - if (timeout < 1e3) + if (timeout < 1e-3) { /* We have event happenning in less than 1 ms so don't allow epoll to wait */ |