mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-14 17:00:35 +00:00
bytes, not KB
This commit is contained in:
parent
c4d5a5a3dd
commit
bed6e76ba3
@ -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))"
|
||||
|
Loading…
x
Reference in New Issue
Block a user