mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-19 12:54:24 -05:00
corrected display byg in transfers
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2276 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9753b47576
commit
76dd404c0d
@ -826,7 +826,7 @@ void TransfersDialog::insertTransfers()
|
|||||||
pinfo.cmap = fcinfo.chunks ;
|
pinfo.cmap = fcinfo.chunks ;
|
||||||
pinfo.type = FileProgressInfo::DOWNLOAD_LINE ;
|
pinfo.type = FileProgressInfo::DOWNLOAD_LINE ;
|
||||||
pinfo.progress = completed*100.0/info.size ;
|
pinfo.progress = completed*100.0/info.size ;
|
||||||
pinfo.nb_chunks = fcinfo.chunks.size() ;
|
pinfo.nb_chunks = pinfo.cmap._map.empty()?0:fcinfo.chunks.size() ;
|
||||||
|
|
||||||
int addedRow = addItem(symbol, name, coreId, fileSize, pinfo, dlspeed, sources, status, priority, completed, remaining);
|
int addedRow = addItem(symbol, name, coreId, fileSize, pinfo, dlspeed, sources, status, priority, completed, remaining);
|
||||||
|
|
||||||
@ -896,7 +896,7 @@ void TransfersDialog::insertTransfers()
|
|||||||
pinfo.type = FileProgressInfo::DOWNLOAD_SOURCE ;
|
pinfo.type = FileProgressInfo::DOWNLOAD_SOURCE ;
|
||||||
pinfo.cmap = fcinfo.compressed_peer_availability_maps[pit->peerId] ;
|
pinfo.cmap = fcinfo.compressed_peer_availability_maps[pit->peerId] ;
|
||||||
pinfo.progress = 0.0 ; // we don't display completion for sources.
|
pinfo.progress = 0.0 ; // we don't display completion for sources.
|
||||||
pinfo.nb_chunks = fcinfo.chunks.size() ;
|
pinfo.nb_chunks = pinfo.cmap._map.empty()?0:fcinfo.chunks.size() ;
|
||||||
|
|
||||||
if (!addPeerToItem(addedRow, symbol, name, coreId, fileSize, pinfo, dlspeed, sources, status, completed, remaining))
|
if (!addPeerToItem(addedRow, symbol, name, coreId, fileSize, pinfo, dlspeed, sources, status, completed, remaining))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user