This commit is contained in:
parent
c0f118250e
commit
baa523aa21
|
@ -1030,7 +1030,7 @@ function combine_all_scripts {
|
||||||
|
|
||||||
function check_ram_availability {
|
function check_ram_availability {
|
||||||
minimum_ram_MB="$1"
|
minimum_ram_MB="$1"
|
||||||
minimum_ram_bytes=$((minimum_ram_gb * 1024))
|
minimum_ram_bytes=$((minimum_ram_MB * 1024))
|
||||||
|
|
||||||
ram_available=$(grep MemTotal /proc/meminfo | awk '{print $2}')
|
ram_available=$(grep MemTotal /proc/meminfo | awk '{print $2}')
|
||||||
if [ $ram_available -lt $minimum_ram_bytes ]; then
|
if [ $ram_available -lt $minimum_ram_bytes ]; then
|
||||||
|
|
Loading…
Reference in New Issue