mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
[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
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue