mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 16:30:01 +08:00
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:
@@ -44,6 +44,7 @@ func init() {
|
||||
}()
|
||||
}
|
||||
|
||||
// CpuUsage returns current cpu usage.
|
||||
func CpuUsage() int64 {
|
||||
return atomic.LoadInt64(&cpuUsage)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user