Merge pull request #25 from johnnyboy-3/patch-1

This commit is contained in:
skyper
2024-07-22 15:26:11 +01:00
committed by GitHub
+1 -1
View File
@@ -248,7 +248,7 @@ ncpu=$(nproc 2>/dev/null)
}
command -v free >/dev/null && {
mem=$(free -h 2>/dev/null | grep -m1 ^Mem | awk '{print $2;}')
mem=$(LANG=C free -h 2>/dev/null | grep -m1 ^Mem | awk '{print $2;}')
}
command -v top >/dev/null && [[ -z "$mem" ]] && {
mem=$(top -l1 -s0 2>/dev/null | grep -m1 PhysMem | cut -f2- -d' ')