Restore statistics of run-times.

This commit is contained in:
fscarmen
2025-12-22 11:47:48 +00:00
parent a7dd49d7ec
commit 146f21f780
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -1394,10 +1394,10 @@ $(${WORK_DIR}/qrencode https://${ARGO_DOMAIN}/${UUID}/auto)
cat ${WORK_DIR}/list
# 显示脚本使用情况数据
# hint "\n*******************************************\n"
# local STAT=$(wget --no-check-certificate -qO- --timeout=3 "https://stat.cloudflare.now.cc/api/updateStats?script=sing-box-docker.sh")
# [[ "$STAT" =~ \"todayCount\":([0-9]+),\"totalCount\":([0-9]+) ]] && local TODAY="${BASH_REMATCH[1]}" && local TOTAL="${BASH_REMATCH[2]}"
# hint "\n 脚本当天运行次数: $TODAY,累计运行次数: $TOTAL \n"
hint "\n*******************************************\n"
local STAT=$(wget --no-check-certificate -qO- --timeout=3 "https://stat.cloudflare.now.cc/api/updateStats?script=sing-box-docker.sh")
[[ "$STAT" =~ \"todayCount\":([0-9]+),\"totalCount\":([0-9]+) ]] && local TODAY="${BASH_REMATCH[1]}" && local TOTAL="${BASH_REMATCH[2]}"
hint "\n 脚本当天运行次数: $TODAY,累计运行次数: $TOTAL \n"
}
# Sing-box 的最新版本