From c56030ddc50691652aa41b12ac703b2dc576db24 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 29 Apr 2025 10:20:10 +1000 Subject: [PATCH] cmd/torrent: Dump full Client stats after download --- cmd/torrent/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.51.0