Commit 6049fc95 authored by Drogon's avatar Drogon Committed by Facebook Github Bot

Fixed some histgram doc error (#892)

Summary:
Replace `folly/Histogram.h` by `folly/stats/Histogram.h`.  Use `auto` to declare type of `getNumBuckets`.
Pull Request resolved: https://github.com/facebook/folly/pull/892

Reviewed By: aary

Differential Revision: D9043331

Pulled By: yfeldblum

fbshipit-source-id: 51dc6164f78ab72b947327e31f198a33a56c5fc4
parent d74fb5be
`folly/Histogram.h` `folly/stats/Histogram.h`
------------------- -------------------
### Classes ### Classes
...@@ -75,7 +75,7 @@ specified histogram minimum, and the last bucket tracks the data points that ...@@ -75,7 +75,7 @@ specified histogram minimum, and the last bucket tracks the data points that
were above the maximum. were above the maximum.
``` Cpp ``` Cpp
unsigned int numBuckets = latencies.getNumBuckets(); auto numBuckets = latencies.getNumBuckets();
cout << "Below min: " << latencies.getBucketByIndex(0).count << "\n"; cout << "Below min: " << latencies.getBucketByIndex(0).count << "\n";
for (unsigned int n = 1; n < numBuckets - 1; ++n) { for (unsigned int n = 1; n < numBuckets - 1; ++n) {
cout << latencies.getBucketMin(n) << "-" << latencies.getBucketMax(n) cout << latencies.getBucketMin(n) << "-" << latencies.getBucketMax(n)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment