diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-05-20 12:35:29 +0300 |
---|---|---|
committer | Zoia <niakris90@gmail.com> | 2019-05-23 14:02:26 +0300 |
commit | 62012db7f794e901f11003ff46cd393b2be0652c (patch) | |
tree | 05cf47f9807876b230a8c26b4e0c8bd00841a752 /android | |
parent | d3402235ac6e02e15bcb7c0ec06f15d21cf34e96 (diff) |
[android][storage] Fix for download size during routing maps downloading.
Diffstat (limited to 'android')
-rw-r--r-- | android/jni/com/mapswithme/maps/MapManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android/jni/com/mapswithme/maps/MapManager.cpp b/android/jni/com/mapswithme/maps/MapManager.cpp index 51c57541bf..45d1d95203 100644 --- a/android/jni/com/mapswithme/maps/MapManager.cpp +++ b/android/jni/com/mapswithme/maps/MapManager.cpp @@ -25,6 +25,7 @@ using namespace storage; // The last 5% are left for applying diffs. float const kMaxProgress = 95.0f; +float const kMaxProgressWithoutDiffs = 100.0f; enum ItemCategory : uint32_t { @@ -653,7 +654,7 @@ Java_com_mapswithme_maps_downloader_MapManager_nativeGetOverallProgress(JNIEnv * jint res = 0; if (progress.second) - res = static_cast<jint>(progress.first / progress.second); + res = static_cast<jint>(progress.first * kMaxProgressWithoutDiffs / progress.second); return res; } |