Fix: byteCountIEC for Total Size

This commit is contained in:
Jeffrey Serio 2023-04-06 22:04:11 -05:00
parent 1025631dce
commit bcd21d2f73

View File

@ -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)},
}