[F] Fix total achievement overflowing int32 max

pull/23/head
Azalea 2024-03-23 02:24:10 -04:00
parent 1ef37d91e8
commit b6c8993f7e
1 changed files with 1 additions and 1 deletions

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