From: Sergey Matveev Date: Sun, 27 Nov 2022 19:03:26 +0000 (+0300) Subject: Speed is in KiBs everywhere X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6fb764522688e0a95c7a9eda80e26488ed988a5b;p=btrtrc.git Speed is in KiBs everywhere --- diff --git a/cmd/btrtrc/status.go b/cmd/btrtrc/status.go index 2ffc530a..ea8ac93a 100644 --- a/cmd/btrtrc/status.go +++ b/cmd/btrtrc/status.go @@ -24,16 +24,12 @@ func overallStatus(c *torrent.Client) { peers += tStats.ActivePeers } log.Printf( - "%s / %s | %d | %s%s%s / %s%s%s", + "%s / %s | %d | %s%d%s / %s%d%s", humanize.IBytes(uint64(stats.BytesRead.Int64())), humanize.IBytes(uint64(stats.BytesWritten.Int64())), peers, - Green, - humanize.IBytes(uint64(stats.BytesRead.Int64()-prev.BytesRead.Int64())), - Reset, - Magenta, - humanize.IBytes(uint64(stats.BytesWritten.Int64()-prev.BytesWritten.Int64())), - Reset, + Green, (stats.BytesRead.Int64()-prev.BytesRead.Int64())/1024, Reset, + Magenta, (stats.BytesWritten.Int64()-prev.BytesWritten.Int64())/1024, Reset, ) prev = stats }