From 5ecde3a874b669942280cc14a04378c92fc8c544 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Sat, 28 Mar 2015 02:51:16 +1100 Subject: [PATCH] Show number of torrents in the client status --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index 8b21c44c..f27db6a9 100644 --- a/client.go +++ b/client.go @@ -237,6 +237,7 @@ func (cl *Client) WriteStatus(_w io.Writer) { fmt.Fprintf(w, "DHT announces: %d\n", cl.dHT.NumConfirmedAnnounces) fmt.Fprintf(w, "Outstanding transactions: %d\n", dhtStats.NumOutstandingTransactions) } + fmt.Fprintf(w, "# Torrents: %d\n", len(cl.torrents)) fmt.Fprintln(w) for _, t := range cl.sortedTorrents() { if t.Name() == "" { -- 2.48.1