dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit ee757cb7e0c52176b457ea2c626adde3d7600504
parent 959fbe2a711026178e726df093a8512f7b5f959c
Author: Duncaen <mail@duncano.de>
Date:   Wed, 22 Mar 2017 17:04:09 +0100

bin/oomtop: make the output more similiar to swaptop

Diffstat:
bin/oomtop | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bin/oomtop b/bin/oomtop @@ -1,9 +1,8 @@ #!/bin/sh # oomtop - lists processes by oom score -printf "SCORE\tPID\tCOMMAND\n" >&2 for f in /proc/[0-9]*; do s=$(cat "$f/oom_score") [ "$s" -eq 0 ] && continue - printf "%d\t%d\t%s\n" "$s" "${f#*/proc/}" "$(cat "$f/comm")" + printf "%8d %s %d\n" "$s" "$(cat "$f/comm")" "${f#*/proc/}" done | sort -nr