Skip to content

Commit 31bf614

Browse files
authored
Merge pull request #25 from johnnyboy-3/patch-1
2 parents f5cde58 + aa088b9 commit 31bf614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/whatserver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ ncpu=$(nproc 2>/dev/null)
248248
}
249249

250250
command -v free >/dev/null && {
251-
mem=$(free -h 2>/dev/null | grep -m1 ^Mem | awk '{print $2;}')
251+
mem=$(LANG=C free -h 2>/dev/null | grep -m1 ^Mem | awk '{print $2;}')
252252
}
253253
command -v top >/dev/null && [[ -z "$mem" ]] && {
254254
mem=$(top -l1 -s0 2>/dev/null | grep -m1 PhysMem | cut -f2- -d' ')

0 commit comments

Comments
 (0)