Skip to content

Commit

Permalink
Let downloadCount index to be based on uploadCount
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Oct 30, 2019
1 parent cb7c997 commit c7e47a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified s3-benchmark
Binary file not shown.
2 changes: 1 addition & 1 deletion s3-benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func runUpload(threadNum int) {
func runDownload(threadNum int) {
for time.Now().Before(endtime) {
atomic.AddInt64(&downloadCount, 1)
objnum := rand.Int63n(downloadCount) + 1
objnum := rand.Int63n(uploadCount) + 1
prefix := fmt.Sprintf("%s/%s/Object-%d", urlHost, bucket, objnum)
req, _ := http.NewRequest(http.MethodGet, prefix, nil)
setSignature(req)
Expand Down

0 comments on commit c7e47a3

Please sign in to comment.