Skip to content

Commit 0c67216

Browse files
committed
Merge remote branch 'fsquillace:patch-1'
2 parents 22e57cd + 4d11822 commit 0c67216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/cpu_collect.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ get_cpu_usage() {
2222
| sed -u -nr '/CPU usage/s/.*,[[:space:]]*([0-9]+[.,][0-9]*)%[[:space:]]*idle.*/\1/p' \
2323
| stdbuf -o0 awk '{ print 100-$0 }'
2424
fi
25-
elif ! command_exists "vmstat"; then
25+
elif command_exists "vmstat"; then
2626
if is_freebsd; then
2727
vmstat -n "$refresh_interval" -c "$samples_count" \
2828
| stdbuf -o0 awk 'NR>2 {print 100-$(NF-0)}'

0 commit comments

Comments
 (0)