mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-13 18:30:34 +00:00
Compare commits
2 Commits
e0d149494d
...
6533cf98bd
Author | SHA1 | Date | |
---|---|---|---|
|
6533cf98bd | ||
|
c7c8cd1ecd |
@ -665,7 +665,7 @@ filelimit_check() {
|
||||
|
||||
# Check total system memory
|
||||
memory_check() {
|
||||
memtotal="$(awk '/MemTotal/ {printf "%.1f \n", $2/1024/1024}' /proc/meminfo)"
|
||||
memtotal="$(LC_NUMERIC=C awk '/MemTotal/ {printf "%.1f \n", $2/1024/1024}' /proc/meminfo)"
|
||||
if [ ${memtotal%.*} -ge "15" ]; then
|
||||
preflight_pass+=("Your system has $memtotal GB of memory.")
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user