From: Matt Joiner Date: Tue, 29 Apr 2025 00:20:10 +0000 (+1000) Subject: cmd/torrent: Dump full Client stats after download X-Git-Tag: v1.59.0~185 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c56030ddc50691652aa41b12ac703b2dc576db24;p=btrtrc.git cmd/torrent: Dump full Client stats after download --- diff --git a/cmd/torrent/download.go b/cmd/torrent/download.go index 7fae9dfb..cbc0a9dc 100644 --- a/cmd/torrent/download.go +++ b/cmd/torrent/download.go @@ -478,7 +478,7 @@ func downloadErr(ctx context.Context, flags downloadFlags) error { } } fmt.Printf("chunks received: %v\n", &torrent.ChunksReceived) - spew.Dump(client.ConnStats()) + spew.Dump(client.Stats()) clStats := client.ConnStats() sentOverhead := clStats.BytesWritten.Int64() - clStats.BytesWrittenData.Int64() log.Printf(