From 6dce2cbf763906822cb17726bbb63196309a564e Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sun, 24 Aug 2014 03:11:35 +1000 Subject: [PATCH] Add piece length to torrent status --- torrent.go | 1 + 1 file changed, 1 insertion(+) diff --git a/torrent.go b/torrent.go index 8ddbe7b7..792ce20f 100644 --- a/torrent.go +++ b/torrent.go @@ -222,6 +222,7 @@ func (t *torrent) NewMetadataExtensionMessage(c *connection, msgType int, piece func (t *torrent) WriteStatus(w io.Writer) { fmt.Fprintf(w, "Infohash: %x\n", t.InfoHash) + fmt.Fprintf(w, "Piece length: %d\n", t.UsualPieceSize()) fmt.Fprint(w, "Pieces: ") for index := range t.Pieces { fmt.Fprintf(w, "%c", t.pieceStatusChar(index)) -- 2.48.1