aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-02-13 01:21:00 +0100
committerDuncaen <mail@duncano.de>2017-02-13 01:21:00 +0100
commit1b46c312bf8f740721634869b35a210567946494 (patch)
tree4b3fe1b603f5b3753b09312292b58e0947717348
parent592ce537ede258d33315dcf0ea3879bf3a3e0ff1 (diff)
downloaddotfiles-1b46c312bf8f740721634869b35a210567946494.tar.gz
bin/oomtop: add desc and make headers distinguishable
-rwxr-xr-xbin/oomtop3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/oomtop b/bin/oomtop
index 2f0ad78..63c88cc 100755
--- a/bin/oomtop
+++ b/bin/oomtop
@@ -1,6 +1,7 @@
#!/bin/sh
+# oomtop - lists processes by oom score
-printf "score\tpid\tcommand\n" >&2
+printf "SCORE\tPID\tCOMMAND\n" >&2
for f in /proc/[0-9]*; do
s=$(cat "$f/oom_score")
[ "$s" -eq 0 ] && continue