Bug 1201811 (part 1) - Don't use integer arithmetic when summing totals in rapl. r=erahm.

--HG--
extra : rebase_source : 2c800587f4bc49a492fb85be1e7d6c0c7885052e
This commit is contained in:
Nicholas Nethercote 2015-09-04 01:04:46 -07:00
parent 0763e5826f
commit 21be35d70a

View File

@ -684,7 +684,7 @@ Finish()
}
// Compute the mean.
double sum = std::accumulate(gTotals_W.begin(), gTotals_W.end(), 0);
double sum = std::accumulate(gTotals_W.begin(), gTotals_W.end(), 0.0);
double mean = sum / n;
// Compute the *population* standard deviation: