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:
Carmen Agimof 2015-08-25 15:17:14 +01:00
parent 7c53955104
commit f96379a3b9

View File

@ -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);
}