mirror of https://github.com/hykilpikonna/AquaDX
[F] Fix total achievement overflowing int32 max
parent
1ef37d91e8
commit
b6c8993f7e
|
@ -43,4 +43,4 @@ fun findTrend(log: List<TrendLog>): List<TrendOut> {
|
||||||
return trend
|
return trend
|
||||||
}
|
}
|
||||||
|
|
||||||
fun List<IGenericGamePlaylog>.acc() = if (isEmpty()) 0.0 else sumOf { it.achievement }.toDouble() / size / 10000.0
|
fun List<IGenericGamePlaylog>.acc() = if (isEmpty()) 0.0 else sumOf { it.achievement / 10000.0 } / size
|
||||||
|
|
Loading…
Reference in New Issue