9 lines
153 B
Bash
Raw Normal View History

2015-02-19 20:15:38 +01:00
#!/bin/sh
2015-02-21 18:18:27 +01:00
collect () {
2015-03-15 10:14:19 +01:00
report $(ps axo %cpu | awk '{ sum+=$1 } END { printf "%.1f\n", sum }' | tail -n 1)
}
docs () {
echo "CPU load percentage."
2015-02-21 18:18:27 +01:00
}