Update histogram creating options

This commit is contained in:
Menghan Li 2016-04-26 14:08:06 -07:00
parent ad0677d6a9
commit b54a56774d
1 changed files with 4 additions and 3 deletions

View File

@ -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)