mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-06 21:35:46 +01:00
Fix integer division in failed-service-start heuristic
This commit is contained in:
+1
-1
@@ -164,7 +164,7 @@ object SlowNotificationHeuristics {
|
||||
return false
|
||||
}
|
||||
|
||||
if (failures.size / (failures.size + successes.size) >= failurePercentage) {
|
||||
if (failures.size.toFloat() / (failures.size + successes.size) >= failurePercentage) {
|
||||
Log.w(TAG, "User often unable start FCM service. ${failures.size} failed : ${successes.size} successful")
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user