修复错误

This commit is contained in:
langhuihui
2021-07-10 21:28:03 +08:00
parent 8e074ce68a
commit 53cdcef146
3 changed files with 4 additions and 24 deletions

View File

@@ -85,7 +85,7 @@ type NetWorkInfo struct {
//StartSummary 开始定时采集数据,每秒一次
func (s *ServerSummary) StartSummary() {
ticker := time.NewTicker(time.Second * config.SampleRate)
ticker := time.NewTicker(time.Second * time.Duration(config.SampleRate))
s.control = make(chan bool)
s.reportChan = make(chan *ServerSummary)
for {