diff --git a/LBGenerator.tar.gz b/LBGenerator.tar.gz index ae0104c..37f442d 100644 Binary files a/LBGenerator.tar.gz and b/LBGenerator.tar.gz differ diff --git a/install.bash b/install.bash index 35d30e1..1bd4295 100755 --- a/install.bash +++ b/install.bash @@ -64,8 +64,8 @@ EOF read -d '' COMPANY_F <<"EOF" BR Light LTDA - LightBase Consulting in Public Software/LightBase Consultoria em Software Público -Free Software + Our Ideas = Best Solution!/Software Livre + Nossas Idéias = Melhor Solução! -+55-61-3347-1949 - http://www.LightBase.com.br - Brasil-DF +Software livre! Abrace essa idéia!/Free software! Embrace that idea! ++55-61-3347-1949/+55-61-3340-6966 - http://brlight.org/ - Brasil-DF EOF f_begin "$TITLE_F" "$VERSION_F" "$ABOUT_F" "$WARNINGS_F" "$COMPANY_F" @@ -2167,6 +2167,35 @@ Use empty for \"$THREADS_QTT\" (good for most cases)! f_ez_sed "" "$THREADS_QTT" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" + f_srv_memory + + # NOTA: A estratégia abaixo foi utilizada pq o bash por padrão não + # permite cálculo de ponto flutuante! By Questor + REQ_TIMEOUT=$(awk '{printf("%.8f\n",(($1/25550)*$2))}' <<<" $F_SRV_MEMORY_R $PROCESSES_QTT ") + + # NOTA: A estratégia abaixo foi utilizada para arredondar o valor + # (remover o ponto flutuante)! By Questor + REQ_TIMEOUT=${REQ_TIMEOUT%\.*} + + TOO_LOW_REQ_TIMEOUT="" + if (( ${REQ_TIMEOUT} < 150 )) ; then + TOO_LOW_REQ_TIMEOUT=" +* WARNING: THE INSTALLER HAS CALCULATED A TOO LOW TIMEOUT VALUE FOR THIS SERVER. TIMEOUTS BELOW 150 SECONDS ARE CONSIDERED TOO LOW. CONSIDER USING A SERVER WITH MORE PROCESSORS AND/OR MEMORY." + fi + + # NOTE: Seta um valor adequado para "request timeout" conforme a + # quantidade de núcleos e de memória da máquina! By Questor + f_div_section + f_get_usr_input "Enter the LBG - LBGenerator REQUEST TIMEOUT (numbers only, integers only). +Use empty for \"$REQ_TIMEOUT\" (good for most cases and highly recommended)! +* Decrease the value if you have application performance and server instability problems; +* Higher values will cause server instability, crash and other unexpected results.$TOO_LOW_REQ_TIMEOUT" 1 + if [ -n "$GET_USR_INPUT_R" ] ; then + REQ_TIMEOUT=$GET_USR_INPUT_R + fi + + f_ez_sed "" "$REQ_TIMEOUT" "$BASE_INST_DIR_V/ve32/src/LBGenerator/production.ini" + f_chk_by_path_hlp "$NGINX_CONF_PATH/lbg.conf" "f" "\"lbg.conf\" already created in \"$NGINX_CONF_PATH/lbg.conf\"!" F_BAK_MD_R=1 if [ ${F_CHK_BY_PATH_HLP_R} -eq 1 ] ; then -- libgit2 0.21.2