Improve system verification notice2

This commit is contained in:
Luis Guzmán 2020-06-30 21:11:26 -05:00
parent 556aa12f47
commit bb0855d6cb
1 changed files with 8 additions and 4 deletions

View File

@ -144,8 +144,10 @@ fi
#Check resources #Check resources
echo "Verifying System Resources:" echo "Verifying System Resources:"
if [ "$(nproc --all)" -lt 4 ];then if [ "$(nproc --all)" -lt 4 ];then
echo "Warning!: The system do not meet the minimum requirements for Jibri to run." echo "
echo ">> We recommend 4 cores/threads for Jibri!" Warning!: The system do not meet the minimum requirements for Jibri to run.
>> We recommend 4 cores/threads for Jibri!
"
CPU_MIN="N" CPU_MIN="N"
else else
echo "CPU Cores/Threads: OK ($(nproc --all))" echo "CPU Cores/Threads: OK ($(nproc --all))"
@ -154,8 +156,10 @@ fi
### Test RAM size (8GB min) ### ### Test RAM size (8GB min) ###
mem_available=$(grep MemTotal /proc/meminfo| grep -o '[0-9]\+') mem_available=$(grep MemTotal /proc/meminfo| grep -o '[0-9]\+')
if [ ${mem_available} -lt 7700000 ]; then if [ ${mem_available} -lt 7700000 ]; then
echo "Warning!: The system do not meet the minimum requirements for Jibri to run." echo "
echo ">> We recommend 8GB RAM for Jibri!" Warning!: The system do not meet the minimum requirements for Jibri to run.
>> We recommend 8GB RAM for Jibri!
"
MEM_MIN="N" MEM_MIN="N"
else else
echo "Memory: OK ($((mem_available/1024)) MiB)" echo "Memory: OK ($((mem_available/1024)) MiB)"