projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf1866c
)
zcip: do not query current time if we won't use the result
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 24 Oct 2015 17:14:04 +0000
(19:14 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 24 Oct 2015 17:14:04 +0000
(19:14 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/zcip.c
patch
|
blob
|
history
diff --git
a/networking/zcip.c
b/networking/zcip.c
index d15c67d55d10f6630fe0b438a81b7455e08ffd8a..f0e7342830f527316591be647207c4b4ba097df6 100644
(file)
--- a/
networking/zcip.c
+++ b/
networking/zcip.c
@@
-361,8
+361,10
@@
int zcip_main(int argc UNUSED_PARAM, char **argv)
// make the kernel filter out all packets except
// ones we'd care about.
}
- // Set deadline_us to the point in time when we timeout
- deadline_us = MONOTONIC_US() + timeout_ms * 1000;
+ if (timeout_ms >= 0) {
+ // Set deadline_us to the point in time when we timeout
+ deadline_us = MONOTONIC_US() + timeout_ms * 1000;
+ }
VDBG("...wait %d %s nsent=%u\n",
timeout_ms, argv_intf, nsent);