mirror of
https://github.com/pstadler/metrics.sh.git
synced 2025-02-28 13:59:12 -05:00
9 lines
142 B
Bash
9 lines
142 B
Bash
#!/bin/sh
|
|
|
|
collect () {
|
|
echo $(ps aux | awk '{sum+=$3} END {printf "%.1f\n", sum}' | tail -n 1)
|
|
}
|
|
|
|
docs () {
|
|
echo "CPU load percentage."
|
|
} |