锦标赛增加日志
This commit is contained in:
parent
4370238f94
commit
f9ef827559
@ -111,7 +111,7 @@ func (c *ChampshipMgr) Init() {
|
|||||||
c.ZeroUpdate()
|
c.ZeroUpdate()
|
||||||
})
|
})
|
||||||
dispterTimer["zero"] = t
|
dispterTimer["zero"] = t
|
||||||
|
log.Debug("ChampshipMgr init success, activity endtime:%d, now:%d, remain:%d, next zero update time:%s", activityCfg.Endtime, now, activityCfg.Endtime-now, GoUtil.FormatTime(activityCfg.Endtime))
|
||||||
remain := now - zeroTime
|
remain := now - zeroTime
|
||||||
remain1 := 1800 - remain%1800
|
remain1 := 1800 - remain%1800
|
||||||
|
|
||||||
@ -245,6 +245,8 @@ func (c *ChampshipMgr) ZeroUpdate() (interface{}, error) {
|
|||||||
c.ZeroUpdate()
|
c.ZeroUpdate()
|
||||||
})
|
})
|
||||||
dispterTimer["zero"] = t
|
dispterTimer["zero"] = t
|
||||||
|
now := GoUtil.Now()
|
||||||
|
log.Debug("ChampshipMgr init success, activity endtime:%d, now:%d, remain:%d, next zero update time:%s", activityCfg.Endtime, now, activityCfg.Endtime-now, GoUtil.FormatTime(activityCfg.Endtime))
|
||||||
c.mDispatr.AfterFunc(time.Duration(timeDuration+1800)*time.Second, func() {
|
c.mDispatr.AfterFunc(time.Duration(timeDuration+1800)*time.Second, func() {
|
||||||
c.ZeroNotifyAll()
|
c.ZeroNotifyAll()
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user