Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Nov 6, 2024
1 parent 3cfeba5 commit d790a07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/objbench.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,11 @@ func (bm *benchMarkObj) run(api apiInfo) []string {
count := api.count
var bar *utils.Bar
if api.name == "list" {
bar = bm.progressBar.AddCountBar(api.title, int64(bCount+sCount)*int64(count))
listCount := bCount + sCount
if bCount+sCount > 1000 {
listCount = 1000
}
bar = bm.progressBar.AddCountBar(api.title, int64(listCount)*int64(count))
} else {
bar = bm.progressBar.AddCountBar(api.title, int64(count))
}
Expand Down

0 comments on commit d790a07

Please sign in to comment.