diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/top.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/procps/top.c b/procps/top.c index 1f1415f83..663eac674 100644 --- a/procps/top.c +++ b/procps/top.c | |||
@@ -763,8 +763,7 @@ int top_main(int argc UNUSED_PARAM, char **argv) | |||
763 | 763 | ||
764 | /* all args are options; -n NUM */ | 764 | /* all args are options; -n NUM */ |
765 | opt_complementary = "-:n+"; | 765 | opt_complementary = "-:n+"; |
766 | getopt32(argv, "d:n:b", &sinterval, &iterations); | 766 | if (getopt32(argv, "d:n:b", &sinterval, &iterations) & OPT_d) { |
767 | if (option_mask32 & OPT_d) { | ||
768 | /* Need to limit it to not overflow poll timeout */ | 767 | /* Need to limit it to not overflow poll timeout */ |
769 | interval = xatou16(sinterval); // -d | 768 | interval = xatou16(sinterval); // -d |
770 | } | 769 | } |