improve cpu metric

This commit is contained in:
Patrick Stadler 2015-03-15 10:14:19 +01:00
parent 98c83e4af5
commit ff5bc25eec
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
collect () {
report $(ps aux | awk '{ sum+=$3 } END { printf "%.1f\n", sum }' | tail -n 1)
report $(ps axo %cpu | awk '{ sum+=$1 } END { printf "%.1f\n", sum }' | tail -n 1)
}
docs () {