mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
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:
parent
0763e5826f
commit
21be35d70a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user