From b02aff3cfb6d27e9c28cf411f494b6bbc39f431e Mon Sep 17 00:00:00 2001 From: jeffery Date: Mon, 10 Jul 2023 23:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- monitor/routes/timer.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/monitor/routes/timer.js b/monitor/routes/timer.js index 0f64f90f..8d49d09c 100644 --- a/monitor/routes/timer.js +++ b/monitor/routes/timer.js @@ -49,12 +49,12 @@ module.exports = async (customerWarningCallback, serverType = "master") => { /** * 定时任务 开始 */ setTimeout(() => { Common.consoleInfo() - // Common.createTable(0) + Common.createTable(0) - // if (process.env.LOGNAME === "jeffery") { - // console.log("=====本地服务,不再启动定时器====") - // return - // } + if (process.env.LOGNAME === "jeffery") { + console.log("=====本地服务,不再启动定时器====") + return + } // 数据库里存放的monitor-master-uuid let monitorMasterUuidInDb = "" @@ -146,11 +146,9 @@ module.exports = async (customerWarningCallback, serverType = "master") => { TimerCalculateController.calculateCountByDay(minuteTimeStr, 0) } } - console.log(minuteTimeStr, monitorMasterUuidInDb, global.monitorInfo.monitorMasterUuid) // 每小时的前6分钟,会计算小时数据 if (minuteTimeStr > "00:00" && minuteTimeStr < "06:00") { if (monitorMasterUuidInDb === global.monitorInfo.monitorMasterUuid) { - console.log("开始小时分析") TimerCalculateController.calculateCountByHour(minuteTimeStr, 1, customerWarningCallback) } }