summaryrefslogtreecommitdiff
path: root/procps/top.c
diff options
context:
space:
mode:
authorDenys Vlasenko2009-09-21 23:58:43 +0200
committerDenys Vlasenko2009-09-21 23:58:43 +0200
commitd75295c80bcfa577b124328f09e75ea15facf67f (patch)
tree91997d8bc037ae494576a9366906caf0555663cb /procps/top.c
parent69b1cef921ac66e8f792ff52ddb3a5609600a17f (diff)
downloadbusybox-d75295c80bcfa577b124328f09e75ea15facf67f.zip
busybox-d75295c80bcfa577b124328f09e75ea15facf67f.tar.gz
ps: conditionally enable -T on non-DESKTOP build too
function old new delta ps_main 253 274 +21 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'procps/top.c')
-rw-r--r--procps/top.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/procps/top.c b/procps/top.c
index dbaaca1..9e8ad1d 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -895,7 +895,7 @@ int top_main(int argc UNUSED_PARAM, char **argv)
int lines_rem;
unsigned interval;
char *str_interval, *str_iterations;
- IF_NOT_FEATURE_TOPMEM(const) unsigned scan_mask = TOP_MASK;
+ unsigned scan_mask = TOP_MASK;
#if ENABLE_FEATURE_USE_TERMIOS
struct termios new_settings;
struct pollfd pfd[1];
@@ -1080,13 +1080,13 @@ int top_main(int argc UNUSED_PARAM, char **argv)
sort_function[2] = time_sort;
# endif
}
-#if ENABLE_FEATURE_SHOW_THREADS
+# if ENABLE_FEATURE_SHOW_THREADS
if (c == 'h'
IF_FEATURE_TOPMEM(&& scan_mask != TOPMEM_MASK)
) {
scan_mask ^= PSSCAN_TASKS;
}
-#endif
+# endif
# if ENABLE_FEATURE_TOP_CPU_USAGE_PERCENTAGE
if (c == 'p') {
IF_FEATURE_TOPMEM(scan_mask = TOP_MASK;)