diff options
Diffstat (limited to 'procps/top.c')
-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 1f1415f..663eac6 100644 --- a/procps/top.c +++ b/procps/top.c @@ -763,8 +763,7 @@ int top_main(int argc UNUSED_PARAM, char **argv) /* all args are options; -n NUM */ opt_complementary = "-:n+"; - getopt32(argv, "d:n:b", &sinterval, &iterations); - if (option_mask32 & OPT_d) { + if (getopt32(argv, "d:n:b", &sinterval, &iterations) & OPT_d) { /* Need to limit it to not overflow poll timeout */ interval = xatou16(sinterval); // -d } |