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 7379fd3 commit 7d065b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions httpgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ func genRecords(size string) ([]Record, error) {
if err != nil {
return nil, err
}
if suffix == "MB" {
total *= 1024
}
if suffix == "BB" {
total *= 1024 * 1024
}
records = genNRecords(total)
return records, nil
}
Expand Down

0 comments on commit 7d065b6

Please sign in to comment.