Skip to content

Instantly share code, notes, and snippets.

@slugonamission
slugonamission / Archer-top
Last active March 3, 2016 23:19
Adding "99 problems, 0 bitches" to top's Tasks line
=============== 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"