From 1c844972f5b8ed62a679f4ebd1efa923b3286c3e Mon Sep 17 00:00:00 2001 From: Nashwan Azhari Date: Fri, 25 Mar 2022 16:59:46 +0200 Subject: [PATCH] Fix max number of samples in experiments on non-64-bit systems. (#528) --- gmeasure/experiment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmeasure/experiment.go b/gmeasure/experiment.go index 2ac521d73..1c2d30096 100644 --- a/gmeasure/experiment.go +++ b/gmeasure/experiment.go @@ -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 }