Open purpleidea opened 7 years ago
How come the setter and getter for CPU's isn't the same type?
Eg:
func (d *VirDomain) SetVcpus(vcpu uint) error
vs.
func (i *VirDomainInfo) GetNrVirtCpu() uint16
Or did I miss something? If not, LMK what we prefer, I'm happy to write the patch.
Switching uint16 to uint seems a good move for me.
uint16
uint
I've added a patch for this: https://github.com/rgbkrk/libvirt-go/pull/121
How come the setter and getter for CPU's isn't the same type?
Eg:
func (d *VirDomain) SetVcpus(vcpu uint) error
vs.
func (i *VirDomainInfo) GetNrVirtCpu() uint16
Or did I miss something? If not, LMK what we prefer, I'm happy to write the patch.