[F] Fix total achievement overflowing int32 max

This commit is contained in:
Azalea
2024-03-23 02:24:10 -04:00
parent 1ef37d91e8
commit b6c8993f7e

View File

@@ -43,4 +43,4 @@ fun findTrend(log: List<TrendLog>): List<TrendOut> {
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