mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-20 18:54:01 +00:00
report file completion zero if in incomplete piece
This commit is contained in:
@@ -1087,7 +1087,7 @@ namespace torrents
|
||||
filesIT++;
|
||||
while (filesIT != m_Files.end () && (*filesIT)->GetFileLength () <= currentSize)
|
||||
{
|
||||
completed.push_back ((*filesIT)->GetFileLength ());
|
||||
completed.push_back (piece.IsComplete () ? (*filesIT)->GetFileLength () : 0);
|
||||
currentSize -= (*filesIT)->GetFileLength ();
|
||||
filesIT++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user