From: Matt Joiner Date: Thu, 16 Feb 2017 09:10:32 +0000 (+1100) Subject: Fix torrent status info hash hex X-Git-Tag: v1.0.0~481 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=350dd01ab95ae5b0c8f4dbe0c2c360eef715367f;p=btrtrc.git Fix torrent status info hash hex --- diff --git a/torrent.go b/torrent.go index 929e0bc6..1027f950 100644 --- a/torrent.go +++ b/torrent.go @@ -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: ")