diff options
-rw-r--r-- | networking/ifplugd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ifplugd.c b/networking/ifplugd.c index 43f26c6df..6efad22eb 100644 --- a/networking/ifplugd.c +++ b/networking/ifplugd.c | |||
@@ -628,6 +628,7 @@ int ifplugd_main(int argc UNUSED_PARAM, char **argv) | |||
628 | opts = getopt32(argv, OPTION_STR, | 628 | opts = getopt32(argv, OPTION_STR, |
629 | &G.iface, &G.script_name, &G.poll_time, &G.delay_up, | 629 | &G.iface, &G.script_name, &G.poll_time, &G.delay_up, |
630 | &G.delay_down, &G.api_mode, &G.extra_arg); | 630 | &G.delay_down, &G.api_mode, &G.extra_arg); |
631 | G.poll_time *= 1000; | ||
631 | 632 | ||
632 | applet_name = xasprintf("ifplugd(%s)", G.iface); | 633 | applet_name = xasprintf("ifplugd(%s)", G.iface); |
633 | 634 | ||
@@ -752,7 +753,7 @@ int ifplugd_main(int argc UNUSED_PARAM, char **argv) | |||
752 | 753 | ||
753 | if (poll(netlink_pollfd, | 754 | if (poll(netlink_pollfd, |
754 | (opts & FLAG_MONITOR) ? 1 : 0, | 755 | (opts & FLAG_MONITOR) ? 1 : 0, |
755 | G.poll_time * 1000 | 756 | G.poll_time |
756 | ) < 0 | 757 | ) < 0 |
757 | ) { | 758 | ) { |
758 | if (errno == EINTR) | 759 | if (errno == EINTR) |