From 6128186a2cda1c920ba3cdee1b2de6d575410be7 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 17 May 2024 01:26:35 +0800 Subject: [PATCH] Update index.py --- plugins/mysql/index.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/mysql/index.py b/plugins/mysql/index.py index aa4cfb8d6..1e13d64ed 100755 --- a/plugins/mysql/index.py +++ b/plugins/mysql/index.py @@ -3278,6 +3278,7 @@ def isSimpleSyncCmd(sql): def doFullSyncUser(version=''): + time_all_s = time.time() args = getArgs() data = checkArgs(args, ['db', 'sign']) if not data[0]: @@ -3416,8 +3417,8 @@ def doFullSyncUser(version=''): # if os.path.exists(bak_file): # os.system("rm -rf " + bak_file) - time_e = time.time() - print("cos:", time_e - time_s) + time_all_e = time.time() + print("cos:", time_all_e - time_all_s) return True