From 20c79023c8319200a0da4e0df0f5d42742eff987 Mon Sep 17 00:00:00 2001 From: Chantara Tith Date: Fri, 5 Aug 2016 04:47:18 +0700 Subject: [PATCH] Micro optimization. calling one external function instead of two. --- src/core/lvmdevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/lvmdevice.cpp b/src/core/lvmdevice.cpp index 72eabde..d0438fc 100644 --- a/src/core/lvmdevice.cpp +++ b/src/core/lvmdevice.cpp @@ -47,8 +47,8 @@ LvmDevice::LvmDevice(const QString& name, const QString& iconname) { m_peSize = logicalSize(); m_totalPE = totalLogical(); - m_allocPE = getAllocatedPE(name); - m_freePE = totalLogical() - m_allocPE; + m_freePE = getFreePE(name); + m_allocPE = m_totalPE - m_freePE; m_UUID = getUUID(name); initPartitions();