Skip to content

Commit

Permalink
Fix MB/GB total count
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Sep 22, 2022
1 parent 7d065b6 commit 3e96903
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions httpgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e96903

Please sign in to comment.