diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-24 19:14:04 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-24 19:14:04 +0200 |
commit | 49d51598ac1db5e07a496a3014545f5daab8c501 (patch) | |
tree | 38f9cfd04f9fc9538c979b2008c56cb06c7decac | |
parent | bf1866c1832ddc5ac429b9af6bb1bc577c7796f8 (diff) | |
download | busybox-w32-49d51598ac1db5e07a496a3014545f5daab8c501.tar.gz busybox-w32-49d51598ac1db5e07a496a3014545f5daab8c501.tar.bz2 busybox-w32-49d51598ac1db5e07a496a3014545f5daab8c501.zip |
zcip: do not query current time if we won't use the result
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | networking/zcip.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/networking/zcip.c b/networking/zcip.c index d15c67d55..f0e734283 100644 --- a/networking/zcip.c +++ b/networking/zcip.c | |||
@@ -361,8 +361,10 @@ int zcip_main(int argc UNUSED_PARAM, char **argv) | |||
361 | // make the kernel filter out all packets except | 361 | // make the kernel filter out all packets except |
362 | // ones we'd care about. | 362 | // ones we'd care about. |
363 | } | 363 | } |
364 | // Set deadline_us to the point in time when we timeout | 364 | if (timeout_ms >= 0) { |
365 | deadline_us = MONOTONIC_US() + timeout_ms * 1000; | 365 | // Set deadline_us to the point in time when we timeout |
366 | deadline_us = MONOTONIC_US() + timeout_ms * 1000; | ||
367 | } | ||
366 | 368 | ||
367 | VDBG("...wait %d %s nsent=%u\n", | 369 | VDBG("...wait %d %s nsent=%u\n", |
368 | timeout_ms, argv_intf, nsent); | 370 | timeout_ms, argv_intf, nsent); |