torrent.go | 7 ++++++- diff --git a/torrent.go b/torrent.go index 771933838cf4ceb53d12bd1cb23d82236e37265e..6ac23114a1ba67b5a1de976763321550bc4d894e 100644 --- a/torrent.go +++ b/torrent.go @@ -250,6 +250,8 @@ case p.Hashing: return 'H' case t.PiecePartiallyDownloaded(index): return 'P' + case !p.EverHashed: + return '?' default: return '.' } @@ -287,8 +289,11 @@ } else { return "?" } }()) - fmt.Fprint(w, "Pieces: ") + fmt.Fprint(w, "Pieces:") for index := range t.Pieces { + if index%100 == 0 { + fmt.Fprintln(w) + } fmt.Fprintf(w, "%c", t.pieceStatusChar(index)) } fmt.Fprintln(w)