Commit 6909166a authored by Ubuntu's avatar Ubuntu

fix cpu usage

parent 41c3ad09
......@@ -52,6 +52,8 @@ func getCPUUsage() ([]DeviceInfo, error) {
pid := syscall.Getpid()
if err := syscall.Getrusage(pid, &rusage); err != nil {
fmt.Println("Getrusage",err.Error())
return nil, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment