From 146f21f780b7d9f6852b81f6582799000b72b470 Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Mon, 22 Dec 2025 11:47:48 +0000 Subject: [PATCH] Restore statistics of run-times. --- docker_init.sh | 8 ++++---- sing-box.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docker_init.sh b/docker_init.sh index d83ef1f..eb32af2 100644 --- a/docker_init.sh +++ b/docker_init.sh @@ -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 的最新版本 diff --git a/sing-box.sh b/sing-box.sh index 71d967f..dccb338 100644 --- a/sing-box.sh +++ b/sing-box.sh @@ -3273,7 +3273,7 @@ $(${WORK_DIR}/qrencode $SUBSCRIBE_ADDRESS/${UUID_CONFIRM}/auto2) cat ${WORK_DIR}/list # 显示脚本使用情况数据 - # statistics_of_run-times get + statistics_of_run-times get } # 创建快捷方式 @@ -3839,7 +3839,7 @@ menu() { } check_cdn -# statistics_of_run-times update sing-box.sh 2>/dev/null +statistics_of_run-times update sing-box.sh 2>/dev/null # 传参 [[ "${*^^}" =~ '-E'|'-K' ]] && L=E