|
@@ -5,12 +5,12 @@ export PATH
|
|
|
#=================================================
|
|
#=================================================
|
|
|
# System Required: CentOS 6+,Debian7+,Ubuntu12+
|
|
# System Required: CentOS 6+,Debian7+,Ubuntu12+
|
|
|
# Description: BBR+BBR魔改版+Lotserver
|
|
# Description: BBR+BBR魔改版+Lotserver
|
|
|
-# Version: 1.0.4
|
|
|
|
|
|
|
+# Version: 1.0.5
|
|
|
# Author: 千影
|
|
# Author: 千影
|
|
|
# Blog: https://www.94ish.me/
|
|
# Blog: https://www.94ish.me/
|
|
|
#=================================================
|
|
#=================================================
|
|
|
|
|
|
|
|
-sh_ver="1.0.4"
|
|
|
|
|
|
|
+sh_ver="1.0.5"
|
|
|
github="raw.githubusercontent.com/chiakge/Linux-NetSpeed/master"
|
|
github="raw.githubusercontent.com/chiakge/Linux-NetSpeed/master"
|
|
|
|
|
|
|
|
Green_font_prefix="\033[32m" && Red_font_prefix="\033[31m" && Green_background_prefix="\033[42;37m" && Red_background_prefix="\033[41;37m" && Font_color_suffix="\033[0m"
|
|
Green_font_prefix="\033[32m" && Red_font_prefix="\033[31m" && Green_background_prefix="\033[42;37m" && Red_background_prefix="\033[41;37m" && Font_color_suffix="\033[0m"
|
|
@@ -144,7 +144,7 @@ startlotserver(){
|
|
|
memory1=`expr ${memory} / 1024`
|
|
memory1=`expr ${memory} / 1024`
|
|
|
memory2=`expr ${memory1} \* 8`
|
|
memory2=`expr ${memory1} \* 8`
|
|
|
cpucore=`cat /proc/cpuinfo | grep “processor” | wc -l`
|
|
cpucore=`cat /proc/cpuinfo | grep “processor” | wc -l`
|
|
|
- ping1=`ping 139.196.7.248 -s 1000 -c 10 | awk -F"[= ]*" '/from/{sum+=$(NF-1);}END{print sum/10;}' | awk -F "." '{print $1}'`
|
|
|
|
|
|
|
+ ping1=`ping 140.205.230.3 -s 1000 -c 10 | awk -F"[= ]*" '/from/{sum+=$(NF-1);}END{print sum/10;}' | awk -F "." '{print $1}'`
|
|
|
sed -i '/initialCwndWan/d' /appex/etc/config
|
|
sed -i '/initialCwndWan/d' /appex/etc/config
|
|
|
sed -i '/l2wQLimit/d' /appex/etc/config
|
|
sed -i '/l2wQLimit/d' /appex/etc/config
|
|
|
sed -i '/w2lQLimit/d' /appex/etc/config
|
|
sed -i '/w2lQLimit/d' /appex/etc/config
|