mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2026-01-23 09:22:14 +01:00
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 sum = std::accumulate(arr.begin(), arr.end(), 0.0f);
|
||||
int sum = std::accumulate(arr.begin(), arr.end(), 0);
|
||||
return (sum / sz);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user