mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
Bug 665805 - Include sums in histograms sent to server r=Mossop
This commit is contained in:
parent
eb52a788cd
commit
69a2c1e7b4
@ -82,7 +82,8 @@ function getHistograms() {
|
||||
range: [r[1], r[r.length - 1]],
|
||||
bucket_count: r.length,
|
||||
histogram_type: hgram.histogram_type,
|
||||
values: {}
|
||||
values: {},
|
||||
sum: hgram.sum
|
||||
};
|
||||
let first = true;
|
||||
let last = 0;
|
||||
|
@ -92,7 +92,8 @@ function checkHistograms(request, response) {
|
||||
range: [1, 2],
|
||||
bucket_count: 3,
|
||||
histogram_type: 2,
|
||||
values: {0:1, 1:1, 2:0}
|
||||
values: {0:1, 1:1, 2:0},
|
||||
sum: 1
|
||||
}
|
||||
let tc = payload.histograms[TELEMETRY_SUCCESS]
|
||||
do_check_eq(uneval(tc),
|
||||
|
Loading…
Reference in New Issue
Block a user