mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-04-28 14:29:19 +08:00
style: add format
Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
@@ -31,7 +31,21 @@ func (s *Statistics) output() {
|
||||
intervalCount = *s.AllCount - sum
|
||||
}
|
||||
timeIntervalNum++
|
||||
log.ZWarn(context.Background(), " system stat ", nil, "args", s.PrintArgs, "intervalCount", 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