From b54a56774d952ade6676d70f8dae8c17654c4446 Mon Sep 17 00:00:00 2001 From: Menghan Li Date: Tue, 26 Apr 2016 14:08:06 -0700 Subject: [PATCH] Update histogram creating options --- benchmark/worker/benchmark_client.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/benchmark/worker/benchmark_client.go b/benchmark/worker/benchmark_client.go index f1ea2c9bf..4726d8188 100644 --- a/benchmark/worker/benchmark_client.go +++ b/benchmark/worker/benchmark_client.go @@ -142,9 +142,10 @@ func startBenchmarkClientWithSetup(setup *testpb.ClientConfig) (*benchmarkClient } bc.histogram = stats.NewHistogram(stats.HistogramOptions{ - NumBuckets: int(math.Log(bc.histogramMaxPossible)/math.Log(1+bc.histogramGrowFactor)) + 1, - GrowthFactor: bc.histogramGrowFactor, - MinValue: 0, + NumBuckets: int(math.Log(bc.histogramMaxPossible)/math.Log(1+bc.histogramGrowFactor)) + 1, + GrowthFactor: bc.histogramGrowFactor, + BaseBucketSize: (1 + bc.histogramGrowFactor), + MinValue: 0, }) bc.stop = make(chan bool)