mirror of
https://github.com/tmux-plugins/tmux-cpu.git
synced 2026-09-10 07:16:16 -04:00
Fix interpolation
This commit is contained in:
parent
09ddceb8ee
commit
c66fd296c9
|
|
@ -6,7 +6,7 @@ source "$CURRENT_DIR/helpers.sh"
|
|||
|
||||
print_cpu_percentage() {
|
||||
if [ -e "/proc/stat" ]; then
|
||||
grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {print usage "%"}'
|
||||
grep 'cpu ' /proc/stat | awk '{usage=(\$2+\$4)*100/(\$2+\$4+\$5)} END {print usage "%"}'
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue