From bcd21d2f737b6f9855907aa9351bdb265d3a2b42 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio <23226432+hyperreal64@users.noreply.github.com> Date: Thu, 6 Apr 2023 22:04:11 -0500 Subject: [PATCH] Fix: byteCountIEC for Total Size --- cgi-bin/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/main.go b/cgi-bin/main.go index 383877a..2ac1b72 100644 --- a/cgi-bin/main.go +++ b/cgi-bin/main.go @@ -147,7 +147,7 @@ func main() { torrentInfoDatum := [][]string{ {"Name", v.Name}, {"Date Added", v.DateAdded.String()}, - {"Total Size", fmt.Sprintf("%d", int64(v.TotalSize))}, + {"Total Size", byteCountIEC(int64(v.TotalSize))}, {"Peers Connected", fmt.Sprintf("%d", v.PeersConnected)}, {"Peers Getting From Us", fmt.Sprintf("%d", v.PeersGettingFromUs)}, }