mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-09 14:07:11 +08:00
fix: fix lint errros in pkg/statics
This commit is contained in:
parent
7495f6b034
commit
be0f294ec3
@ -36,9 +36,8 @@ func (s *Statistics) output() {
|
|||||||
var timeIntervalNum uint64
|
var timeIntervalNum uint64
|
||||||
for {
|
for {
|
||||||
sum = *s.AllCount
|
sum = *s.AllCount
|
||||||
select {
|
<-t.C
|
||||||
case <-t.C:
|
|
||||||
}
|
|
||||||
if *s.AllCount-sum <= 0 {
|
if *s.AllCount-sum <= 0 {
|
||||||
intervalCount = 0
|
intervalCount = 0
|
||||||
} else {
|
} else {
|
||||||
@ -66,5 +65,6 @@ func (s *Statistics) output() {
|
|||||||
func NewStatistics(allCount *uint64, moduleName, printArgs string, sleepTime int) *Statistics {
|
func NewStatistics(allCount *uint64, moduleName, printArgs string, sleepTime int) *Statistics {
|
||||||
p := &Statistics{AllCount: allCount, ModuleName: moduleName, SleepTime: uint64(sleepTime), PrintArgs: printArgs}
|
p := &Statistics{AllCount: allCount, ModuleName: moduleName, SleepTime: uint64(sleepTime), PrintArgs: printArgs}
|
||||||
go p.output()
|
go p.output()
|
||||||
|
|
||||||
return p
|
return p
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user