Update Nlbench.sh

This commit is contained in:
Jensfrank 2024-07-06 21:31:27 +08:00 committed by GitHub
parent 860bd9c23f
commit 627dba51ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,8 +123,7 @@ run_iperf3_test() {
# 统计使用次数 # 统计使用次数
sum_run_times() { sum_run_times() {
local COUNT local COUNT=$(wget --no-check-certificate -qO- --tries=2 --timeout=2 "https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Feverett7623%2Fnodeloc_vps_test%2Fmain%2FNlbench.sh" 2>&1 | grep -m1 -oE "[0-9]+[ ]+/[ ]+[0-9]+")
COUNT=$(wget --no-check-certificate -qO- --tries=2 --timeout=2 "https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https://github.com/everett7623/nodeloc_vps_test/edit/main/Nlbench.sh" 2>&1 | grep -m1 -oE "[0-9]+[ ]+/[ ]+[0-9]+")
if [[ -n "$COUNT" ]]; then if [[ -n "$COUNT" ]]; then
daily_count=$(cut -d " " -f1 <<< "$COUNT") daily_count=$(cut -d " " -f1 <<< "$COUNT")
total_count=$(cut -d " " -f3 <<< "$COUNT") total_count=$(cut -d " " -f3 <<< "$COUNT")