diff --git a/src/server/game/champship_mgr.go b/src/server/game/champship_mgr.go index 72a3336a..62594a88 100644 --- a/src/server/game/champship_mgr.go +++ b/src/server/game/champship_mgr.go @@ -111,7 +111,7 @@ func (c *ChampshipMgr) Init() { c.ZeroUpdate() }) 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 remain1 := 1800 - remain%1800 @@ -245,6 +245,8 @@ func (c *ChampshipMgr) ZeroUpdate() (interface{}, error) { c.ZeroUpdate() }) 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.ZeroNotifyAll() })