i was having some problems as well, this solved mine. I just edited inside docker container in root,
using> sudo nano /www/server/panel/install/public.sh
some solutions on this post before wasn´t working so came with this.
GetCpuStat(){
time1=$(cat /proc/stat | grep 'cpu ')
sleep 1
time2=$(cat /proc/stat | grep 'cpu ')
# Converte os valores para inteiros antes da subtração
cpuTime1=$(echo ${time1} | awk '{printf "%.0f", $2+$3+$4+$5+$6+$7+$8}')
cpuTime2=$(echo ${time2} | awk '{printf "%.0f", $2+$3+$4+$5+$6+$7+$8}')
runTime=$((${cpuTime2} - ${cpuTime1}))
idelTime1=$(echo ${time1} | awk '{printf "%.0f", $5}')
idelTime2=$(echo ${time2} | awk '{printf "%.0f", $5}')
idelTime=$((${idelTime2} - ${idelTime1}))
useTime=$(((${runTime} - ${idelTime}) * 3))
# Substitui a lógica condicional para definir cpuBusy como true diretamente
cpuBusy="true"
if [ "${cpuBusy}" == "true" ]; then
cpuCore=$((${cpuInfo} / 2))
else
cpuCore=$((${cpuInfo} - 1))
fi
}