From 3e969035e14c66b6c1af0fb9892cf678da6b447e Mon Sep 17 00:00:00 2001 From: Valentin Kuznetsov Date: Thu, 22 Sep 2022 10:44:51 -0400 Subject: [PATCH] Fix MB/GB total count --- httpgo.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/httpgo.go b/httpgo.go index 5f90d95..f736ab2 100644 --- a/httpgo.go +++ b/httpgo.go @@ -66,10 +66,10 @@ func genRecords(size string) ([]Record, error) { return nil, err } if suffix == "MB" { - total *= 1024 + total *= 1000 } - if suffix == "BB" { - total *= 1024 * 1024 + if suffix == "GB" { + total *= 1000 * 1000 } records = genNRecords(total) return records, nil