]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix torrent status info hash hex
authorMatt Joiner <anacrolix@gmail.com>
Thu, 16 Feb 2017 09:10:32 +0000 (20:10 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 16 Feb 2017 09:10:32 +0000 (20:10 +1100)
torrent.go

index 929e0bc6454d1956f2529614d4c17211ac74a3dc..1027f950fc566fdb4a22e7c58759707a02eb135e 100644 (file)
@@ -418,7 +418,7 @@ func pieceStateRunStatusChars(psr PieceStateRun) (ret string) {
 }
 
 func (t *Torrent) writeStatus(w io.Writer) {
-       fmt.Fprintf(w, "Infohash: %x\n", t.infoHash)
+       fmt.Fprintf(w, "Infohash: %s\n", t.infoHash.HexString())
        fmt.Fprintf(w, "Metadata length: %d\n", t.metadataSize())
        if !t.haveInfo() {
                fmt.Fprintf(w, "Metadata have: ")