diff options
Diffstat (limited to '')
-rw-r--r-- | src/engine/plan.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/engine/plan.cpp b/src/engine/plan.cpp index cfe4893b..a37dcc89 100644 --- a/src/engine/plan.cpp +++ b/src/engine/plan.cpp | |||
@@ -1010,7 +1010,13 @@ extern "C" HRESULT PlanLayoutContainer( | |||
1010 | } | 1010 | } |
1011 | else | 1011 | else |
1012 | { | 1012 | { |
1013 | pPlan->qwCacheSizeTotal += 2 * pContainer->qwFileSize; | 1013 | if (!pContainer->fActuallyAttached) |
1014 | { | ||
1015 | pPlan->qwCacheSizeTotal += pContainer->qwFileSize; | ||
1016 | } | ||
1017 | |||
1018 | // TODO: This should be the sum of all uncompressed payloads in the container, ideally restricted to the payloads that were actually planned. | ||
1019 | pPlan->qwCacheSizeTotal += pContainer->qwFileSize; | ||
1014 | } | 1020 | } |
1015 | 1021 | ||
1016 | if (!pContainer->sczUnverifiedPath) | 1022 | if (!pContainer->sczUnverifiedPath) |