Update scripts/ram_percentage.sh

Co-Authored-By: Casper da Costa-Luis <casper.dcl@physics.org>
This commit is contained in:
Filriya 2020-04-02 13:34:21 +09:00 committed by GitHub
parent 3e34d43a67
commit d9aae35e66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {