Skip to content

Commit

Permalink
Fix max number of samples in experiments on non-64-bit systems. (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
aznashwan committed Mar 25, 2022
1 parent 4dea8d5 commit 1c84497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gmeasure/experiment.go
Expand Up @@ -452,7 +452,7 @@ func (e *Experiment) Sample(callback func(idx int), samplingConfig SamplingConfi
if samplingConfig.Duration > 0 {
maxTime = time.Now().Add(samplingConfig.Duration)
}
maxN := math.MaxInt64
maxN := math.MaxInt32
if samplingConfig.N > 0 {
maxN = samplingConfig.N
}
Expand Down

0 comments on commit 1c84497

Please sign in to comment.