mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-07 18:45:58 +08:00
Merge branch 'errcode' of github.com:OpenIMSDK/Open-IM-Server into errcode
# Conflicts: # pkg/common/mw/rpc_server_interceptor.go
This commit is contained in:
@@ -2,6 +2,7 @@ package statistics
|
||||
|
||||
import (
|
||||
"OpenIM/pkg/common/log"
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
@@ -29,7 +30,7 @@ func (s *Statistics) output() {
|
||||
intervalCount = *s.AllCount - sum
|
||||
}
|
||||
timeIntervalNum++
|
||||
log.NewWarn("", " system stat ", s.ModuleName, s.PrintArgs, intervalCount, "total:", *s.AllCount, "intervalNum", timeIntervalNum, "avg", (*s.AllCount)/(timeIntervalNum)/s.SleepTime)
|
||||
log.ZWarn(context.Background(), " system stat ", nil, "args", s.PrintArgs, "intervalCount", intervalCount, "total:", *s.AllCount, "intervalNum", timeIntervalNum, "avg", (*s.AllCount)/(timeIntervalNum)/s.SleepTime)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user