cmd/torrent/download.go | 12 ++++++------ diff --git a/cmd/torrent/download.go b/cmd/torrent/download.go index 0ec4b99088250bc37cae52daf60c9791155519bc..cb3ca583b022975fc02682858a5ab423b6f83a94 100644 --- a/cmd/torrent/download.go +++ b/cmd/torrent/download.go @@ -357,12 +357,12 @@ } else { err = ctx.Err() } clientConnStats := client.ConnStats() - log.Printf("average download rate: %v", - humanize.Bytes(uint64( - time.Duration( - clientConnStats.BytesReadUsefulData.Int64(), - )*time.Second/time.Since(started), - ))) + log.Printf( + "average download rate: %v/s", + humanize.Bytes(uint64(float64( + clientConnStats.BytesReadUsefulData.Int64(), + )/time.Since(started).Seconds())), + ) if flags.Seed { if len(client.Torrents()) == 0 { log.Print("no torrents to seed")