Update whatserver.sh

For non-english systems
This commit is contained in:
johnnyboy-3
2024-02-10 17:16:08 +00:00
committed by GitHub
parent 6c513a83c8
commit aa088b94f4
+1 -1
View File
@@ -247,7 +247,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' ')