From 350dd01ab95ae5b0c8f4dbe0c2c360eef715367f Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Thu, 16 Feb 2017 20:10:32 +1100 Subject: [PATCH] Fix torrent status info hash hex --- torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: ") -- 2.48.1