mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Merge branch 'pull/469'
This commit is contained in:
commit
ddc595889f
@ -70,9 +70,9 @@ if [ "$1" = "config" ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ps -e -o "%C%U" | \
|
top -b -n 1 | tail -n +8 | \
|
||||||
awk -v USERS="$USERS" '
|
awk -v USERS="$USERS" '
|
||||||
{ if ($2 != "USER") CPU_USER[$2]+=$1 }
|
{ if ($2 != "USER") CPU_USER[$2]+=$9 }
|
||||||
END {
|
END {
|
||||||
others_sum = 0
|
others_sum = 0
|
||||||
for (user in CPU_USER) {
|
for (user in CPU_USER) {
|
||||||
|
Loading…
Reference in New Issue
Block a user