public
Last active

Adding "99 problems, 0 bitches" to top's Tasks line

  • Download Gist
Archer-top
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
=============== START OF DIFF ========================
 
--- temp/procps-3.2.8/top.h 2006-06-25 07:41:48.000000000 +0100
+++ procps-3.2.8/top.h 2013-02-25 22:56:29.000000000 +0000
@@ -382,7 +382,7 @@
#define LOADAV_line "%s -%s\n"
#define LOADAV_line_alt "%s\06 -%s\n"
#define STATES_line1 "Tasks:\03" \
- " %3u \02total,\03 %3u \02running,\03 %3u \02sleeping,\03 %3u \02stopped,\03 %3u \02zombie\03\n"
+ " %3u \02total,\03 %3u \02running,\03 %3u \02sleeping,\03 %3u \02stopped,\03 %3u \02zombie,\03 99 \02problems,\03 0 \02bitches\03\n"
#define STATES_line2x4 "%s\03" \
" %#5.1f%% \02user,\03 %#5.1f%% \02system,\03 %#5.1f%% \02nice,\03 %#5.1f%% \02idle\03\n"
#define STATES_line2x5 "%s\03" \
 
================== END OF DIFF =======================
 
Or, the shorter version, change the end of the line after STATES_line1
in top.h to be ",\03 99 \02problems,\03 0 \02bitches\03\n" rather than "\03\n"
 
Get the procps tools from http://procps.sourceforge.net/index.html

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.