From 28b0c2858cd1a3ef5ca9d21c0067c7daedfce2f1 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Tue, 30 Mar 2021 17:58:34 +0800 Subject: [PATCH] 时间随机精确到秒 --- src/services/globald.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/globald.lua b/src/services/globald.lua index 3fe9383..014dfb3 100644 --- a/src/services/globald.lua +++ b/src/services/globald.lua @@ -259,7 +259,7 @@ local function check_work_battle() redisproxy:hincrby(WORK_BATTLE_COUNT, field, add) end end - skynet.timeout(math.randomInt(10, 15) * 60 * 100, check_work_battle) + skynet.timeout(math.randomInt(10 * 60, 15 * 60) * 100, check_work_battle) end local CMD = {} -- libgit2 0.21.2