Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
We make 2 copies of the compressed package
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Apr 8, 2022
1 parent 515ba66 commit 046fb8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Setup/Setup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
// and squirrel overheads (incl temp files). the constant 0.38 is a
// aggressive estimate on what the compression ratio might be.
int64_t squirrelOverhead = 50 * 1000 * 1000;
int64_t requiredSpace = squirrelOverhead + packageLength + (packageLength / (double)0.38);
int64_t requiredSpace = squirrelOverhead + (packageLength * 3) + (packageLength / (double)0.38);
if (!util::check_diskspace(requiredSpace)) {
throw wstring(L"Insufficient disk space. This application requires at least " + pretty_bytes(requiredSpace) + L" free space to be installed");
}
Expand Down

0 comments on commit 046fb8f

Please sign in to comment.