From 5839dbcd6b5ab0d2f56e83a0ee5aef7e8e9e048b Mon Sep 17 00:00:00 2001 From: dami Date: Mon, 6 Jul 2026 20:05:10 +0800 Subject: [PATCH] Update tool_migrate.py --- plugins/webstats/tool_migrate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/webstats/tool_migrate.py b/plugins/webstats/tool_migrate.py index b960fd363..ee8203b66 100644 --- a/plugins/webstats/tool_migrate.py +++ b/plugins/webstats/tool_migrate.py @@ -115,7 +115,9 @@ def migrateSiteHotLogs(site_name, query_date): print(f"[{site_name}] 备份 {hot_db} -> {hot_db_tmp} ...") mw.writeFile(migrating_flag, "yes") time.sleep(1) + copy_start = time.time() shutil.copy(hot_db, hot_db_tmp) + print(f"[{site_name}] 备份完成,耗时 {time.time() - copy_start:.2f}s") if not os.path.exists(hot_db_tmp): return mw.returnMsg(False, f"{site_name} migrating fail, copy tmp file!") except Exception as e: