This commit is contained in:
aozhiwei 2024-06-26 21:46:14 +08:00
parent a0207cd71e
commit 8c9bb7b4fb

View File

@ -25,7 +25,7 @@ func (this* sysMail) init() {
}, },
func (err error, ds *f5.DataSet) { func (err error, ds *f5.DataSet) {
if err != nil { if err != nil {
panic(fmt.Sprintf("taskMgr init err:%s", err)) panic(fmt.Sprintf("sysMail init err:%s", err))
return return
} }
if ds.Next() { if ds.Next() {
@ -55,9 +55,9 @@ func (this *sysMail) syncSysMail() {
this.syncSysMailCond.L.Lock() this.syncSysMailCond.L.Lock()
this.syncSysMailCond.Wait() this.syncSysMailCond.Wait()
this.syncSysMailCond.L.Unlock() this.syncSysMailCond.L.Unlock()
if q5.GetTickCount() - lastOutTick > 15 { if q5.GetTickCount() - lastOutTick > 1000 * 15 {
lastOutTick = q5.GetTickCount() lastOutTick = q5.GetTickCount()
f5.GetSysLog().Info("taskMgr lastSyncSysMailIdx:%s", this.lastSyncSysMailIdx) f5.GetSysLog().Info("sysMail lastSyncSysMailIdx:%d", this.lastSyncSysMailIdx)
} }
} }
} }