Skip to content

Commit

Permalink
fix memory plugin ut for mac (kubewharf#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
waynepeking348 authored and luomingmeng committed Oct 11, 2024
1 parent 18dc322 commit f44dd49
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/util/machine/topology.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,7 @@ func (topo *CPUTopology) GetSocketTopology() map[int]string {
}

func GenerateDummyMachineInfo(numaNum int, memoryCapacityGB int) (*info.MachineInfo, error) {
machineInfo, err := getMachineInfo()

if err != nil {
return nil, err
}
machineInfo := &info.MachineInfo{}

if memoryCapacityGB%numaNum != 0 {
return nil, fmt.Errorf("invalid memoryCapacityGB: %d and NUMA number: %d", memoryCapacityGB, numaNum)
Expand Down

0 comments on commit f44dd49

Please sign in to comment.