mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-07-01 08:21:02 +00:00
bytes, not KB
This commit is contained in:
@ -901,7 +901,7 @@ winetricks_check() {
|
||||
|
||||
# Check system memory and swap space
|
||||
memory_check() {
|
||||
# Get totals in KB
|
||||
# Get totals in bytes
|
||||
memtotal="$(LC_NUMERIC=C awk '/MemTotal/ {printf $2}' /proc/meminfo)"
|
||||
swaptotal="$(LC_NUMERIC=C awk '/SwapTotal/ {printf $2}' /proc/meminfo)"
|
||||
memtotal="$(($memtotal * 1024))"
|
||||
|
Reference in New Issue
Block a user