mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 13:57:10 +01:00
Only updates EOSE log if the time is bigger
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user