Skip to content

Commit 90b986d

Browse files
author
ylws-4617
committed
修复节点
1 parent fb856ad commit 90b986d

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

Generate.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -443,19 +443,19 @@ def dict_to_table(d,tab):
443443
<td>{62}</td>
444444
</tr>
445445
<tr>
446-
<td>西安移动</td>
446+
<td>北京电信</td>
447447
<td>{63}</td>
448448
<td>{64}</td>
449449
<td>{65}</td>
450450
</tr>
451451
<tr>
452-
<td>上海移动</td>
452+
<td>北京联通</td>
453453
<td>{66}</td>
454454
<td>{67}</td>
455455
<td>{68}</td>
456456
</tr>
457457
<tr>
458-
<td>成都移动</td>
458+
<td>湖南电信</td>
459459
<td>{69}</td>
460460
<td>{70}</td>
461461
<td>{71}</td>

ZBench-CN.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if [ ! -e '/usr/sbin/virt-what' ]; then
4747
else
4848
apt-get update
4949
apt-get -y install virt-what > /dev/null 2>&1
50-
fi
50+
fi
5151
fi
5252

5353
# Install uuid
@@ -166,7 +166,7 @@ speed() {
166166
speed_test_cn(){
167167
if [[ $1 == '' ]]; then
168168
temp=$(python /tmp/speedtest.py --share 2>&1)
169-
is_down=$(echo "$temp" | grep 'Download')
169+
is_down=$(echo "$temp" | grep 'Download')
170170
if [[ ${is_down} ]]; then
171171
local REDownload=$(echo "$temp" | awk -F ':' '/Download/{print $2}')
172172
local reupload=$(echo "$temp" | awk -F ':' '/Upload/{print $2}')
@@ -179,7 +179,7 @@ speed_test_cn(){
179179
fi
180180
else
181181
temp=$(python /tmp/speedtest.py --server $1 --share 2>&1)
182-
is_down=$(echo "$temp" | grep 'Download')
182+
is_down=$(echo "$temp" | grep 'Download')
183183
if [[ ${is_down} ]]; then
184184
local REDownload=$(echo "$temp" | awk -F ':' '/Download/{print $2}')
185185
local reupload=$(echo "$temp" | awk -F ':' '/Upload/{print $2}')
@@ -210,10 +210,10 @@ speed_cn() {
210210
speed_test_cn '4863' "西安电信"
211211
speed_test_cn '5083' '上海联通'
212212
speed_test_cn '5726' '重庆联通'
213-
speed_test_cn '5192' "西安移动"
214-
speed_test_cn '4665' '上海移动'
215-
speed_test_cn '4575' '成都移动'
216-
213+
speed_test_cn '4751' "北京电信"
214+
speed_test_cn '5145' '北京联通'
215+
speed_test_cn '6132' '湖南电信'
216+
217217
rm -rf /tmp/speedtest.py
218218
}
219219
@@ -390,7 +390,7 @@ done
390390
if [[ $ifreport == 'y' ]];then
391391
echo ""
392392
myip=`curl -m 10 -s http://members.3322.org/dyndns/getip`
393-
echo "访问 http://${myip}:8001/index.html 查看您的测试报告,按 Ctrl + C 退出"
393+
echo "访问 http://${myip}:8001/index.html 查看您的测试报告,按 Ctrl + C 退出"
394394
cd /tmp/report
395395
python -m SimpleHTTPServer 8001
396396
iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 8001 -j ACCEPT

ZBench.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if [ ! -e '/usr/sbin/virt-what' ]; then
4545
else
4646
apt-get update > /dev/null 2>&1
4747
apt-get -y install virt-what > /dev/null 2>&1
48-
fi
48+
fi
4949
fi
5050

5151

@@ -167,7 +167,7 @@ speed() {
167167
speed_test_cn(){
168168
if [[ $1 == '' ]]; then
169169
temp=$(python /tmp/speedtest.py --share 2>&1)
170-
is_down=$(echo "$temp" | grep 'Download')
170+
is_down=$(echo "$temp" | grep 'Download')
171171
if [[ ${is_down} ]]; then
172172
local REDownload=$(echo "$temp" | awk -F ':' '/Download/{print $2}')
173173
local reupload=$(echo "$temp" | awk -F ':' '/Upload/{print $2}')
@@ -180,7 +180,7 @@ speed_test_cn(){
180180
fi
181181
else
182182
temp=$(python /tmp/speedtest.py --server $1 --share 2>&1)
183-
is_down=$(echo "$temp" | grep 'Download')
183+
is_down=$(echo "$temp" | grep 'Download')
184184
if [[ ${is_down} ]]; then
185185
local REDownload=$(echo "$temp" | awk -F ':' '/Download/{print $2}')
186186
local reupload=$(echo "$temp" | awk -F ':' '/Upload/{print $2}')
@@ -201,7 +201,7 @@ speed_test_cn(){
201201
echo ${reupload} >> /tmp/speed_cn.txt
202202
echo ${REDownload} >> /tmp/speed_cn.txt
203203
echo ${relatency} >> /tmp/speed_cn.txt
204-
204+
205205
206206
}
207207
@@ -214,10 +214,10 @@ speed_cn() {
214214
speed_test_cn '4863' "Xi'an CU"
215215
speed_test_cn '5083' 'Shanghai CU'
216216
speed_test_cn '5726' 'Chongqing CU'
217-
speed_test_cn '5192' "Xi'an CM"
218-
speed_test_cn '4665' 'Shanghai CM'
219-
speed_test_cn '4575' 'Chengdu CM'
220-
217+
speed_test_cn '5192' "Beijing CT"
218+
speed_test_cn '4665' 'Beijing CT'
219+
speed_test_cn '4575' 'Hunan CT'
220+
221221
rm -rf /tmp/speedtest.py
222222
}
223223
@@ -399,7 +399,7 @@ done
399399
if [[ $ifreport == 'y' ]];then
400400
echo ""
401401
myip=`curl -m 10 -s http://members.3322.org/dyndns/getip`
402-
echo "Visit http://${myip}:8001/index.html to see your report,Press Ctrl + C to exit."
402+
echo "Visit http://${myip}:8001/index.html to see your report,Press Ctrl + C to exit."
403403
cd /tmp/report
404404
python -m SimpleHTTPServer 8001
405405
iptables -I INPUT -m state --state NEW -m tcp -p tcp --dport 8001 -j ACCEPT

0 commit comments

Comments
 (0)