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:
6eaac02
)
ifplugd: small optimization
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 7 Nov 2009 16:30:14 +0000
(17:30 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 7 Nov 2009 16:30:14 +0000
(17:30 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ifplugd.c
patch
|
blob
|
history
diff --git
a/networking/ifplugd.c
b/networking/ifplugd.c
index 43f26c6df456e0573c3900fa01062444e74d2e90..6efad22eb51c4c4c2d211851d416840a3c7e8744 100644
(file)
--- a/
networking/ifplugd.c
+++ b/
networking/ifplugd.c
@@
-628,6
+628,7
@@
int ifplugd_main(int argc UNUSED_PARAM, char **argv)
opts = getopt32(argv, OPTION_STR,
&G.iface, &G.script_name, &G.poll_time, &G.delay_up,
&G.delay_down, &G.api_mode, &G.extra_arg);
+ G.poll_time *= 1000;
applet_name = xasprintf("ifplugd(%s)", G.iface);
@@
-752,7
+753,7
@@
int ifplugd_main(int argc UNUSED_PARAM, char **argv)
if (poll(netlink_pollfd,
(opts & FLAG_MONITOR) ? 1 : 0,
- G.poll_time
* 1000
+ G.poll_time
) < 0
) {
if (errno == EINTR)