forked from organicmaps/organicmaps
[new downloader] GetUpdateInfo - returning correct update size in bytes.
This commit is contained in:
parent
19ac482593
commit
b466c4548c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue