[new downloader] GetUpdateInfo - returning correct update size in bytes.

This commit is contained in:
Vladimir Byko-Ianko 2016-03-16 09:54:32 +03:00 committed by Sergey Yershov
parent 19ac482593
commit b466c4548c

View file

@ -1430,7 +1430,7 @@ bool Storage::GetUpdateInfo(TCountryId const & countryId, UpdateInfo & updateInf
if (descendantNode.ChildrenCount() != 0 || GetNodeStatus(descendantNode).status != NodeStatus::OnDiskOutOfDate)
return;
updateInfo.m_numberOfMwmFilesToUpdate += 1; // It's not a group mwm.
updateInfo.m_totalUpdateSizeInBytes += descendantNode.Value().GetSubtreeMwmCounter();
updateInfo.m_totalUpdateSizeInBytes += descendantNode.Value().GetSubtreeMwmSizeBytes();
};
TCountryTreeNode const * const node = m_countries.FindFirst(countryId);