Bug 665805 - Include sums in histograms sent to server r=Mossop

This commit is contained in:
Taras Glek 2011-06-21 14:39:14 -07:00
parent eb52a788cd
commit 69a2c1e7b4
2 changed files with 4 additions and 2 deletions

View File

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

View File

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