refactor: sync `isOnline` status with firmware (2 hours)

pull/1279/head^2
andrekir 2024-10-02 17:03:36 -03:00
rodzic 0a1f129403
commit 16e91c0ebf
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -159,7 +159,7 @@ data class NodeEntity(
val isOnline: Boolean
get() {
val now = System.currentTimeMillis() / 1000
val timeout = 15 * 60
val timeout = 2 * 60 * 60
return (now - lastHeard <= timeout)
}