projects
/
btrtrc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ca3275
)
Fix torrent status info hash hex
author
Matt Joiner <anacrolix@gmail.com>
Thu, 16 Feb 2017 09:10:32 +0000 (20:10 +1100)
committer
Matt Joiner <anacrolix@gmail.com>
Thu, 16 Feb 2017 09:10:32 +0000 (20:10 +1100)
torrent.go
patch
|
blob
|
history
diff --git
a/torrent.go
b/torrent.go
index 929e0bc6454d1956f2529614d4c17211ac74a3dc..1027f950fc566fdb4a22e7c58759707a02eb135e 100644
(file)
--- 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: ")