mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1201811 (part 1) - Don't use integer arithmetic when summing totals in rapl. r=erahm.
This commit is contained in:
parent
b2c7b13c7d
commit
03f39cb4d5
@ -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