Reduce the calls of external functions to speed up scanning time.

This commit is contained in:
Chantara Tith 2016-08-01 04:46:09 +07:00 committed by Andrius Štikonas
parent 87e9bf9cb5
commit 484c1765ed
1 changed files with 6 additions and 5 deletions

View File

@ -44,12 +44,13 @@ LvmDevice::LvmDevice(const QString& name, const QString& iconname)
getTotalPE(name),
iconname,
Device::LVM_Device)
, m_peSize(getPeSize(name))
, m_totalPE(getTotalPE(name))
, m_allocPE(getAllocatedPE(name))
, m_freePE(getFreePE(name))
, m_UUID(getUUID(name))
{
m_peSize = logicalSize();
m_totalPE = totalLogical();
m_allocPE = getAllocatedPE(name);
m_freePE = totalLogical() - m_allocPE;
m_UUID = getUUID(name);
initPartitions();
}