mirror of
https://github.com/hackerschoice/thc-tips-tricks-hacks-cheat-sheet.git
synced 2026-06-06 14:03:52 +02:00
Update whatserver.sh
For non-english systems
This commit is contained in:
+1
-1
@@ -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' ')
|
||||
|
||||
Reference in New Issue
Block a user