Update the incomplete field in destfile after verifying pieces saved to disk
manny opened this issue · comments
Manuel Lopez commented
As of now, the incomplete field in destfile is initialized to the length of the file from torrent info. It should be set the the file length minus the amount of data we already have verified (e.g. if we start the program with all the pieces already, incomplete should be 0)
Manuel Lopez commented
Somethings up with the way destfile tracks how much we still have left aside from not counting what pieces we already have. Incomplete will go to zero way before we have all of the pieces (destfile line 101)