mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-11 05:59:57 -06:00
Fixing issue displaying negative numbers when download sizes are bigger than 2 GB (closes #925)
This commit is contained in:
@@ -723,10 +723,10 @@ void OpenSpaceEngine::loadSingleAsset(const std::string& assetPath) {
|
||||
progressInfo.progress = (*it)->progress();
|
||||
|
||||
if ((*it)->nTotalBytesIsKnown()) {
|
||||
progressInfo.currentSize = static_cast<int>(
|
||||
progressInfo.currentSize = static_cast<uint64_t>(
|
||||
(*it)->nSynchronizedBytes()
|
||||
);
|
||||
progressInfo.totalSize = static_cast<int>(
|
||||
progressInfo.totalSize = static_cast<uint64_t>(
|
||||
(*it)->nTotalBytes()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user