Only updates EOSE log if the time is bigger

This commit is contained in:
Vitor Pamplona
2025-05-13 14:43:44 -04:00
parent 50cde1bc3e
commit 4279ad004c

View File

@@ -27,4 +27,10 @@ class EOSETime(
var time: Long, var time: Long,
) { ) {
override fun toString(): String = time.toString() override fun toString(): String = time.toString()
fun update(newTime: Long) {
if (newTime > time) {
time = newTime
}
}
} }