You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-zero/core/stat/internal/cpu_other.go

9 lines
154 B
Go

4 years ago
// +build !linux
package internal
// RefreshCpu returns cpu usage, always returns 0 on systems other than linux.
4 years ago
func RefreshCpu() uint64 {
return 0
}