mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
CA-225708: Can not increase dom0 Memory multiple times
- take the already assigned dom0 memory into account when calculating maximum memory available Signed-off-by: Mihaela Stoica <mihaela.stoica@citrix.com>
This commit is contained in:
parent
2bf2f4fcf0
commit
18243b229f
@ -85,7 +85,7 @@ namespace XenAdmin.Dialogs
|
||||
vm.memory_static_max >= vm.memory_static_min)
|
||||
{
|
||||
double min = vm.memory_static_min;
|
||||
double max = Math.Min(host.memory_available_calc, MAXIMUM_DOM0_MEMORY_GB * Util.BINARY_GIGA);
|
||||
double max = Math.Min(vm.memory_dynamic_min + host.memory_available_calc, MAXIMUM_DOM0_MEMORY_GB * Util.BINARY_GIGA);
|
||||
double value = vm.memory_dynamic_min;
|
||||
// Avoid setting the range to exclude the current value: CA-40041
|
||||
if (value > max)
|
||||
|
Loading…
Reference in New Issue
Block a user