We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 22e57cd + 4d11822 commit 0c67216Copy full SHA for 0c67216
scripts/cpu_collect.sh
@@ -22,7 +22,7 @@ get_cpu_usage() {
22
| sed -u -nr '/CPU usage/s/.*,[[:space:]]*([0-9]+[.,][0-9]*)%[[:space:]]*idle.*/\1/p' \
23
| stdbuf -o0 awk '{ print 100-$0 }'
24
fi
25
- elif ! command_exists "vmstat"; then
+ elif command_exists "vmstat"; then
26
if is_freebsd; then
27
vmstat -n "$refresh_interval" -c "$samples_count" \
28
| stdbuf -o0 awk 'NR>2 {print 100-$(NF-0)}'
0 commit comments