Skip to content

Commit

Permalink
print hash rate
Browse files Browse the repository at this point in the history
  • Loading branch information
mh0lt committed Jul 18, 2024
1 parent b2351e5 commit 0186542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ func (t *Torrent) DownloadPieces(begin, end pieceIndex) {
hashed.Add(int64(piece.length(true)))
//fmt.Println("DL hashed", hashed.Load())
if sum, _, err := t.hashPiece(piece); err == nil && sum == *piece.hash {
storage.MarkComplete(false)
t.updatePieceCompletion(i, true)
//storage.MarkComplete(false)
//t.updatePieceCompletion(i, true)
return nil
}

Expand Down

0 comments on commit 0186542

Please sign in to comment.