[partition] Fix swap maximum size

- The existing calculation comment says "maximum 10% of disk"
   but the calculation itself uses 110%.
This commit is contained in:
Adriaan de Groot 2018-08-08 05:26:55 -04:00
parent 59fea041b6
commit 8ed26e537f

View File

@ -90,7 +90,7 @@ swapSuggestion( const qint64 availableSpaceB )
suggestedSwapSizeB *= overestimationFactor;
// don't use more than 10% of available space
qreal maxSwapDiskRatio = 1.10;
qreal maxSwapDiskRatio = 0.10;
qint64 maxSwapSizeB = availableSpaceB * maxSwapDiskRatio;
if ( suggestedSwapSizeB > maxSwapSizeB )
suggestedSwapSizeB = maxSwapSizeB;