diff --git a/scripts/ram_percentage.sh b/scripts/ram_percentage.sh index a982f29..a4b8101 100755 --- a/scripts/ram_percentage.sh +++ b/scripts/ram_percentage.sh @@ -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 }' }