mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-10 13:57:26 +08:00
[F] Fix total achievement overflowing int32 max
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user