Changed std accumulate to use int instead of a float.
This commit is contained in:
parent
271ca78be5
commit
8697a06642
|
@ -21,7 +21,7 @@ namespace Pinetime {
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetAverage() const {
|
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);
|
return (sum / sz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user