mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
优化定时器
This commit is contained in:
@@ -139,7 +139,7 @@ func (slf *Service) Run() {
|
||||
analyzer = nil
|
||||
}
|
||||
case t := <- slf.dispatcher.ChanTimer:
|
||||
if t.IsStop() == false {
|
||||
if t.IsClose() == false {
|
||||
if slf.profiler != nil {
|
||||
analyzer = slf.profiler.Push(fmt.Sprintf("Timer_%s", t.AdditionData.(*timer.Timer).GetFunctionName()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user