Esempio n. 1
0
func (d *Domain) SetMaxMemory(memory uint64) error {
	result := C.virDomainSetMaxMemory(d.cptr, C.ulong(memory))
	if result == -1 {
		return GetLastError()
	}
	return nil
}
Esempio n. 2
0
func (d *VirDomain) SetMaxMemory(memory uint) error {
	result := C.virDomainSetMaxMemory(d.ptr, C.ulong(memory))
	if result == -1 {
		return errors.New(GetLastError())
	}
	return nil
}