Make useful data stat more readable

This commit is contained in:
Matt Joiner 2021-10-14 23:14:39 +11:00
parent 89e7e00c31
commit 7c349d31e2
1 changed files with 1 additions and 1 deletions

View File

@ -377,7 +377,7 @@ func downloadErr(flags downloadFlags) error {
clStats := client.ConnStats()
sentOverhead := clStats.BytesWritten.Int64() - clStats.BytesWrittenData.Int64()
log.Printf(
"client read %v, %v was useful data. sent %v non-data bytes",
"client read %v, %.1f%% was useful data. sent %v non-data bytes",
humanize.Bytes(uint64(clStats.BytesRead.Int64())),
100*float64(clStats.BytesReadUsefulData.Int64())/float64(clStats.BytesRead.Int64()),
humanize.Bytes(uint64(sentOverhead)))