mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2025-02-02 22:17:31 +01:00
Avoid division by 0
This commit is contained in:
parent
0b6f929eaa
commit
d4e20883d7
@ -280,7 +280,7 @@ class ExposureNotificationServiceImpl(private val context: Context, private val
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (todoKeyFiles.size > 0) {
|
if (todoKeyFiles.size > 0) {
|
||||||
val time = (System.currentTimeMillis() - start).toDouble() / 1000.0
|
val time = (System.currentTimeMillis() - start).coerceAtLeast(1).toDouble() / 1000.0
|
||||||
Log.d(TAG, "$packageName/${params.token} processed $keys keys (${todoKeyFiles.size} files pending) in ${time}s -> ${(keys.toDouble() / time * 1000).roundToInt().toDouble() / 1000.0} keys/s")
|
Log.d(TAG, "$packageName/${params.token} processed $keys keys (${todoKeyFiles.size} files pending) in ${time}s -> ${(keys.toDouble() / time * 1000).roundToInt().toDouble() / 1000.0} keys/s")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user