File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -49,12 +49,12 @@ module.exports = async (customerWarningCallback, serverType = "master") => {
4949 /** * 定时任务 开始 */
5050 setTimeout ( ( ) => {
5151 Common . consoleInfo ( )
52- // Common.createTable(0)
52+ Common . createTable ( 0 )
5353
54- // if (process.env.LOGNAME === "jeffery") {
55- // console.log("=====本地服务,不再启动定时器====")
56- // return
57- // }
54+ if ( process . env . LOGNAME === "jeffery" ) {
55+ console . log ( "=====本地服务,不再启动定时器====" )
56+ return
57+ }
5858
5959 // 数据库里存放的monitor-master-uuid
6060 let monitorMasterUuidInDb = ""
@@ -146,11 +146,9 @@ module.exports = async (customerWarningCallback, serverType = "master") => {
146146 TimerCalculateController . calculateCountByDay ( minuteTimeStr , 0 )
147147 }
148148 }
149- console . log ( minuteTimeStr , monitorMasterUuidInDb , global . monitorInfo . monitorMasterUuid )
150149 // 每小时的前6分钟,会计算小时数据
151150 if ( minuteTimeStr > "00:00" && minuteTimeStr < "06:00" ) {
152151 if ( monitorMasterUuidInDb === global . monitorInfo . monitorMasterUuid ) {
153- console . log ( "开始小时分析" )
154152 TimerCalculateController . calculateCountByHour ( minuteTimeStr , 1 , customerWarningCallback )
155153 }
156154 }
You can’t perform that action at this time.
0 commit comments