Commit 0f3790de authored by Ubuntu's avatar Ubuntu

fix cpu usage

parent 8502ad3d
...@@ -45,7 +45,7 @@ func getCPU() ([]DeviceInfo, error) { ...@@ -45,7 +45,7 @@ func getCPU() ([]DeviceInfo, error) {
func getCPUUsage() ([]DeviceInfo, error) { func getCPUUsage() ([]DeviceInfo, error) {
res := make([]DeviceInfo, 0, len(cpu.Processors)) res := make([]DeviceInfo, 0)
var rusage syscall.Rusage var rusage syscall.Rusage
......
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