[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:
parent
59fea041b6
commit
8ed26e537f
@ -90,7 +90,7 @@ swapSuggestion( const qint64 availableSpaceB )
|
|||||||
suggestedSwapSizeB *= overestimationFactor;
|
suggestedSwapSizeB *= overestimationFactor;
|
||||||
|
|
||||||
// don't use more than 10% of available space
|
// don't use more than 10% of available space
|
||||||
qreal maxSwapDiskRatio = 1.10;
|
qreal maxSwapDiskRatio = 0.10;
|
||||||
qint64 maxSwapSizeB = availableSpaceB * maxSwapDiskRatio;
|
qint64 maxSwapSizeB = availableSpaceB * maxSwapDiskRatio;
|
||||||
if ( suggestedSwapSizeB > maxSwapSizeB )
|
if ( suggestedSwapSizeB > maxSwapSizeB )
|
||||||
suggestedSwapSizeB = maxSwapSizeB;
|
suggestedSwapSizeB = maxSwapSizeB;
|
||||||
|
Loading…
Reference in New Issue
Block a user