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

This commit is contained in:
Nicholas Nethercote 2015-09-04 01:04:46 -07:00
parent b2c7b13c7d
commit 03f39cb4d5

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: