mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
attempt to fix the wrong display of uploaded size for files > 4Gb (to be confirmed)
This commit is contained in:
parent
4c5c09cbc8
commit
1b5d31ff7f
@ -324,9 +324,9 @@ class CompressedChunkMap
|
||||
uint32_t residue = total_size%chunk_size ;
|
||||
|
||||
if(residue && operator[](nbchks-1))
|
||||
return (filledChunks(nbchks)-1)*chunk_size + (total_size%chunk_size) ;
|
||||
return (filledChunks(nbchks)-1)*(uint64_t)chunk_size + (total_size%chunk_size) ;
|
||||
else
|
||||
return filledChunks(nbchks)*chunk_size ;
|
||||
return filledChunks(nbchks)*(uint64_t)chunk_size ;
|
||||
}
|
||||
inline bool operator[](uint32_t i) const { return (_map[i >> 5] & (1 << (i & 31))) > 0 ; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user