diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2017-05-11 15:43:16 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2017-05-19 16:41:59 +0300 |
commit | 0eff2d316db1106a63cd20ee1fd27ac8aaee2135 (patch) | |
tree | 61172557bfea2fdc2f9a255a081f14c0c2466d4d /storage | |
parent | 08a4c26a6eb53698fd46680ac2ffdecc4b8d57c6 (diff) |
Review fixes.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/storage_helpers.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/storage_helpers.cpp b/storage/storage_helpers.cpp index e319fe3f98..bb705df5c7 100644 --- a/storage/storage_helpers.cpp +++ b/storage/storage_helpers.cpp @@ -22,7 +22,9 @@ bool IsDownloadFailed(Status status) bool IsEnoughSpaceForDownload(TMwmSize mwmSize) { - return GetPlatform().GetWritableStorageStatus(mwmSize) == + // Additional size which is necessary to have on flash card to download file of mwmSize bytes. + TMwmSize constexpr kExtraSizeBytes = 10 * 1024 * 1024; + return GetPlatform().GetWritableStorageStatus(mwmSize + kExtraSizeBytes) == Platform::TStorageStatus::STORAGE_OK; } |