From 51a71b1fd4eba7abaa0c210112bcfe29475e1b54 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sat, 19 Jul 2025 21:45:34 +1000 Subject: [PATCH] Fix piece hashing expvars update condition --- torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torrent.go b/torrent.go index 1a0db793..bbbbf634 100644 --- a/torrent.go +++ b/torrent.go @@ -2498,7 +2498,7 @@ func (t *Torrent) pieceHashed(piece pieceIndex, passed bool, hashIoErr error) { } // Don't score the first time a piece is hashed, it could be an initial check. - if p.numVerifies == 1 { + if t.initialPieceCheckDisabled || p.numVerifies != 1 { if passed { pieceHashedCorrect.Add(1) } else { -- 2.51.0