mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-03 04:15:37 -04:00
Use length instead of calculating sectors count.
This commit is contained in:
parent
4f41cf54a9
commit
9d995f3625
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ PartitionSizeController::doUpdateSpinBox()
|
|||
{
|
||||
if ( !m_spinBox )
|
||||
return;
|
||||
qint64 mbSize = ( m_partition->lastSector() - m_partition->firstSector() + 1 ) * m_device->logicalSectorSize() / 1024 / 1024;
|
||||
qint64 mbSize = m_partition->length() * m_device->logicalSectorSize() / 1024 / 1024;
|
||||
m_spinBox->setValue( mbSize );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue