Index: src/libchengine/TSubTaskScanDirectory.cpp =================================================================== diff -u -N -r9fcf462ad4a28203a3d34ded6da7125d4dcc925c -r178e776294cbc8e3a5a33b355a314e0db94b214b --- src/libchengine/TSubTaskScanDirectory.cpp (.../TSubTaskScanDirectory.cpp) (revision 9fcf462ad4a28203a3d34ded6da7125d4dcc925c) +++ src/libchengine/TSubTaskScanDirectory.cpp (.../TSubTaskScanDirectory.cpp) (revision 178e776294cbc8e3a5a33b355a314e0db94b214b) @@ -209,7 +209,7 @@ m_tSubTaskStats.SetProcessedCount(totalCount); auto totalSize = rFilesCache.CalculateTotalSize(); m_tSubTaskStats.SetTotalSize(totalSize); - m_tSubTaskStats.SetProcessedSize(totalSize); + m_tSubTaskStats.SetProcessedSize(0); m_tSubTaskStats.SetCurrentPath(TString()); @@ -224,6 +224,7 @@ void TSubTaskScanDirectories::GetStatsSnapshot(TSubTaskStatsSnapshotPtr& spStats) const { m_tSubTaskStats.GetSnapshot(spStats); + spStats->SetIgnoreSizeInAggregateStats(true); } size_t TSubTaskScanDirectories::ScanDirectory(TSmartPath pathDirName, const TBasePathDataPtr& spBasePathData, @@ -278,10 +279,10 @@ auto totalCount = rFilesCache.GetCount(); m_tSubTaskStats.SetTotalCount(totalCount); - m_tSubTaskStats.SetProcessedCount(totalCount); + m_tSubTaskStats.SetProcessedCount(0); auto totalSize = rFilesCache.CalculateTotalSize(); m_tSubTaskStats.SetTotalSize(totalSize); - m_tSubTaskStats.SetProcessedSize(totalSize); + m_tSubTaskStats.SetProcessedSize(0); return stFilesCount; }