summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko2009-11-07 17:30:14 +0100
committerDenys Vlasenko2009-11-07 17:30:14 +0100
commit5a34d021cb07a13cfd7dbade66e33cba2aa295d4 (patch)
tree8f12b78cf626d13698255243625e14fd214e0c51 /networking
parent6eaac025a1f76c2d271657295b8b00d534e6f8a3 (diff)
downloadbusybox-5a34d021cb07a13cfd7dbade66e33cba2aa295d4.zip
busybox-5a34d021cb07a13cfd7dbade66e33cba2aa295d4.tar.gz
ifplugd: small optimization
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/ifplugd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ifplugd.c b/networking/ifplugd.c
index 43f26c6..6efad22 100644
--- 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)