From 285ac73006e2e4af6e0e4cb0eaa178b13cdcba8f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 13 Sep 2017 14:00:47 +0200 Subject: ifpps: fix unintendet assignment Variable rate is assigned instead of compared in the check of the interval in relation to the line rate. Fix it and at the same time fix the compared against interval value to match the message we show if the condition is fulfilled. Signed-off-by: Tobias Klauser --- ifpps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ifpps.c b/ifpps.c index 8296add..501fa50 100644 --- a/ifpps.c +++ b/ifpps.c @@ -1153,8 +1153,8 @@ static int screen_main(const char *ifname, uint64_t ms_interval, panic_handler_add(on_panic_handler, NULL); - if (((rate > SPEED_1000 && ms_interval <= 1000) || - (rate = SPEED_1000 && ms_interval < 1000)) && + if (((rate > SPEED_1000 && ms_interval <= 10000) || + (rate == SPEED_1000 && ms_interval < 1000)) && !suppress_warnings) need_info = true; -- cgit v1.2.3-54-g00ecf