Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151351687
D44163.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
704 B
Referenced Files
None
Subscribers
None
D44163.id.diff
View Options
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c
--- a/usr.bin/top/top.c
+++ b/usr.bin/top/top.c
@@ -42,6 +42,17 @@
/* Size of the stdio buffer given to stdout */
#define Buffersize 2048
+#ifdef TOP_SHOW_ARGS
+#define SHOW_ARGS true
+#else
+#define SHOW_ARGS false
+#endif
+#ifdef TOP_PCPU_STATS
+#define PCPU_STATS true
+#else
+#define PCPU_STATS false
+#endif
+
char copyright[] =
"Copyright (c) 1984 through 1996, William LeFebvre";
@@ -51,8 +62,8 @@
static char stdoutbuf[Buffersize];
static int fmt_flags = 0;
-int show_args = false;
-int pcpu_stats = false;
+int show_args = SHOW_ARGS;
+int pcpu_stats = PCPU_STATS;
/* signal handling routines */
static sigret_t leave(int);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 7:58 PM (12 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31048422
Default Alt Text
D44163.id.diff (704 B)
Attached To
Mode
D44163: top: allow changing PCPU stats and/or showing args defaults at compile time
Attached
Detach File
Event Timeline
Log In to Comment