Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Correct comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom authored and rocketsroger committed Aug 14, 2019
1 parent 1222864 commit 1e8ba04
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ data class PrecomputedHistogram(
* ping payload. Compared to [toJsonObject] which is designed for lossless roundtripping:
*
* - this does not include the bucketing parameters
* - all buckets [0, max + 1] are inserted into values
* - all buckets [min, max + 1] are inserted into values
*
* @return The histogram as JSON to send in a ping payload
*/
internal fun toJsonPayloadObject(): JSONObject {
// Include all buckets [0, max + 1], where max is the maximum bucket with
// Include all buckets [min, max + 1], where max is the maximum bucket with
// any value recorded.
val contiguousValues = if (!values.isEmpty()) {
val bucketMax = values.keys.max()!!
Expand Down

0 comments on commit 1e8ba04

Please sign in to comment.