Closed monkeyWie closed 11 months ago
Sorry, it took a while for me to understand the problem. File.BytesCompleted is not including dirty chunks in the computation, but it does for Torrent.BytesCompleted.
One reason not to include dirty bytes in the computation is that they can fail piece checks, and so your download rate would appear to go backwards between successive calls. Is that okay?
Firstly thanks for your great project. There have a problem that when I call
file.BytesCompleted()
to stat a special file speed it always return 0, bur calltorrent.BytesCompleted()
is fine, and it only seems to happen in torrent that piece length is longer.This is my code: