aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/dpdk/device/node.c')
-rw-r--r--src/plugins/dpdk/device/node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/dpdk/device/node.c b/src/plugins/dpdk/device/node.c
index ccbfd2f290a..2120069e6f0 100644
--- a/src/plugins/dpdk/device/node.c
+++ b/src/plugins/dpdk/device/node.c
@@ -533,12 +533,12 @@ static inline void
poll_rate_limit (dpdk_main_t * dm)
{
/* Limit the poll rate by sleeping for N msec between polls */
- if (PREDICT_FALSE (dm->poll_sleep != 0))
+ if (PREDICT_FALSE (dm->poll_sleep_usec != 0))
{
struct timespec ts, tsrem;
ts.tv_sec = 0;
- ts.tv_nsec = 1000 * 1000 * dm->poll_sleep; /* 1ms */
+ ts.tv_nsec = 1000 * dm->poll_sleep_usec;
while (nanosleep (&ts, &tsrem) < 0)
{