]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Not ever hashed takes higher priority than partially downloaded
authorMatt Joiner <anacrolix@gmail.com>
Mon, 1 Dec 2014 09:28:25 +0000 (03:28 -0600)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 1 Dec 2014 09:28:25 +0000 (03:28 -0600)
torrent.go

index be9ca7116aec3e131cf5dfd822c0f0fd38d72739..78162aa07d295ed9b5918374db662d22e4030928 100644 (file)
@@ -275,10 +275,10 @@ func (t *torrent) pieceStatusChar(index int) byte {
                return 'Q'
        case p.Hashing:
                return 'H'
-       case t.PiecePartiallyDownloaded(index):
-               return 'P'
        case !p.EverHashed:
                return '?'
+       case t.PiecePartiallyDownloaded(index):
+               return 'P'
        default:
                return '.'
        }