fix golint issues in core/stat (#515)

* change to use ServiceGroup to make it more clear

* fix golint issues in core/stat
This commit is contained in:
Kevin Wan
2021-02-24 15:13:56 +08:00
committed by GitHub
parent 56ad4776d4
commit acdaee0fb6
9 changed files with 53 additions and 23 deletions

View File

@@ -44,6 +44,7 @@ func init() {
}()
}
// CpuUsage returns current cpu usage.
func CpuUsage() int64 {
return atomic.LoadInt64(&cpuUsage)
}