Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
android-components
Commits
7f46fd75
Commit
7f46fd75
authored
Apr 09, 2019
by
travis79
Browse files
Glean: improve comment regarding bucketing to be more clear about overflow
parent
79ce172f
Changes
1
Hide whitespace changes
Inline
Side-by-side
components/service/glean/src/test/java/mozilla/components/service/glean/storages/TimingDistributionsStorageEngineTest.kt
View file @
7f46fd75
...
...
@@ -226,7 +226,9 @@ class TimingDistributionsStorageEngineTest {
@Test
fun
`getBuckets
()
correctly
populates
the
buckets
property`
()
{
// Hand calculated values using current default range 0 - 60000 and bucket count of 100
// Hand calculated values using current default range 0 - 60000 and bucket count of 100.
// NOTE: The final bucket, regardless of width, represents the overflow bucket to hold any
// values beyond the maximum (in this case the maximum is 60000)
val
testBuckets
:
List
<
Long
>
=
listOf
(
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
17
,
19
,
21
,
23
,
25
,
28
,
31
,
34
,
38
,
42
,
46
,
51
,
56
,
62
,
68
,
75
,
83
,
92
,
101
,
111
,
122
,
135
,
149
,
164
,
181
,
200
,
221
,
244
,
269
,
297
,
328
,
362
,
399
,
440
,
485
,
535
,
590
,
651
,
718
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment