Skip to content

Commit

Permalink
fix(ovirt): vCPUs should be cores*sockets #122
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ko committed May 2, 2024
1 parent da992a5 commit d7d817a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/source/ovirt/ovirt_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,9 @@ func (o *OVirtSource) extractVMData(nbi *inventory.NetboxInventory, vmID string,
if cores, exists := cpuTopology.Cores(); exists {
vmVCPUs = float32(cores)
}
if sockets, exists := cpuTopology.Sockets(); exists {
vmVCPUs *= float32(sockets)
}
}
}

Expand Down

0 comments on commit d7d817a

Please sign in to comment.