Fix torrent status info hash hex
This commit is contained in:
parent
6ca3275752
commit
350dd01ab9
@ -418,7 +418,7 @@ func pieceStateRunStatusChars(psr PieceStateRun) (ret string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (t *Torrent) writeStatus(w io.Writer) {
|
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())
|
fmt.Fprintf(w, "Metadata length: %d\n", t.metadataSize())
|
||||||
if !t.haveInfo() {
|
if !t.haveInfo() {
|
||||||
fmt.Fprintf(w, "Metadata have: ")
|
fmt.Fprintf(w, "Metadata have: ")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user