Compare commits

..

No commits in common. 'ef5056a446730347150887a7e485da69bd97ae3e' and '3608872740b7ded1691742bcd48fe5354a8eb1a6' have entirely different histories.

@ -5,7 +5,6 @@ package cpu
import (
"context"
"errors"
"fmt"
"strconv"
"strings"
@ -153,10 +152,6 @@ func perCPUTimes(machLib *common.Library) ([]TimesStat, error) {
return nil, fmt.Errorf("host_processor_info error=%d", status)
}
if cpuload == nil {
return nil, errors.New("host_processor_info returned nil cpuload")
}
defer vmDeallocate(machTaskSelf(), uintptr(unsafe.Pointer(cpuload)), uintptr(ncpu))
ret := []TimesStat{}

Loading…
Cancel
Save