mirror of
https://github.com/tmux-plugins/tmux-cpu.git
synced 2026-09-10 07:16:16 -04:00
Update scripts/ram_percentage.sh
Co-Authored-By: Casper da Costa-Luis <casper.dcl@physics.org>
This commit is contained in:
parent
3e34d43a67
commit
d9aae35e66
|
|
@ -10,8 +10,7 @@ ram_percentage_format="%3.1f%%"
|
|||
sum_macos_vm_stats() {
|
||||
cat - \
|
||||
| perl -pe "s/^[^\d]*([\d]*)\./\1/g" \
|
||||
| awk '{ print $1 * 4096 }' \
|
||||
| awk '{ a += $1 } END { print a }'
|
||||
| awk '{ a += $1 * 4096 } END { print a }'
|
||||
}
|
||||
|
||||
print_ram_percentage() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue