fix golint issues

This commit is contained in:
kevin
2020-10-16 10:50:43 +08:00
parent 338caf9927
commit 94645481b1
27 changed files with 73 additions and 88 deletions

View File

@@ -24,11 +24,8 @@ func main() {
ticker := time.NewTicker(time.Second * 5)
defer ticker.Stop()
for {
select {
case <-ticker.C:
percent := stat.CpuUsage()
fmt.Println("cpu:", percent)
}
for range ticker.C {
percent := stat.CpuUsage()
fmt.Println("cpu:", percent)
}
}