Revert "libcalamares: Align partition sizes on actual sectors"

This reverts commit 40202705ff.
This commit is contained in:
Arnaud Ferraris 2019-08-13 16:57:47 +02:00
parent 40202705ff
commit a51d612afa

View File

@ -160,7 +160,7 @@ alignBytesToBlockSize( qint64 bytes, qint64 blocksize )
constexpr qint64
bytesToSectors( qint64 bytes, qint64 blocksize )
{
return alignBytesToBlockSize( bytes, blocksize ) / blocksize;
return alignBytesToBlockSize( alignBytesToBlockSize( bytes, blocksize ), MiBtoBytes( 1ULL ) ) / blocksize;
}
} // namespace CalamaresUtils