mirror of
https://github.com/tmux-plugins/tmux-cpu.git
synced 2026-09-10 07:16:16 -04:00
Use grep instead of perl
This commit is contained in:
parent
d9aae35e66
commit
99aafee0d8
|
|
@ -9,7 +9,7 @@ ram_percentage_format="%3.1f%%"
|
|||
|
||||
sum_macos_vm_stats() {
|
||||
cat - \
|
||||
| perl -pe "s/^[^\d]*([\d]*)\./\1/g" \
|
||||
| grep -o [0-9]* \
|
||||
| awk '{ a += $1 * 4096 } END { print a }'
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue