summaryrefslogtreecommitdiffhomepage
path: root/procps
diff options
context:
space:
mode:
Diffstat (limited to 'procps')
-rw-r--r--procps/top.c3
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)
/* 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
}