Changed std accumulate to use int instead of a float.

This commit is contained in:
panky-codes 2021-01-16 20:36:34 +01:00
parent 271ca78be5
commit 8697a06642

View file

@ -21,7 +21,7 @@ namespace Pinetime {
}
int GetAverage() const {
int sum = std::accumulate(arr.begin(), arr.end(), 0.0f);
int sum = std::accumulate(arr.begin(), arr.end(), 0);
return (sum / sz);
}