mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 06:16:37 +01:00
CP:13174: Changes the default value for the SR quantum allocation to be the maximum of the minimum value and SR size / 10 000 for the cases when the latter is smaller than the minimum.
This commit is contained in:
parent
7c53955104
commit
f96379a3b9
@ -588,7 +588,7 @@ namespace XenAdmin.Core
|
||||
{
|
||||
decimal min = Math.Max(SRSize / XLVHD_MIN_ALLOCATION_QUANTUM_DIVISOR , XLVHD_MIN_ALLOCATION_QUANTUM);
|
||||
decimal max = SRSize / XLVHD_MAX_ALLOCATION_QUANTUM_DIVISOR;
|
||||
decimal defaultValue = SRSize / XLVHD_DEF_ALLOCATION_QUANTUM_DIVISOR;
|
||||
decimal defaultValue = Math.Max(SRSize / XLVHD_DEF_ALLOCATION_QUANTUM_DIVISOR, min);
|
||||
|
||||
return new AllocationBounds(min, max, defaultValue);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user