Skip to content

Commit

Permalink
移除打印
Browse files Browse the repository at this point in the history
  • Loading branch information
a826604005 committed Jul 10, 2023
1 parent de134bd commit b02aff3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions monitor/routes/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down Expand Up @@ -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)
}
}
Expand Down

0 comments on commit b02aff3

Please sign in to comment.