Skip to content

wich nodes are connected ones? #1763

Answered by jsoberg
frantsch asked this question in Q&A
Discussion options

You must be logged in to vote

The logic right now is that a node is considered "online" if you last heard from it less than 2 hours ago:

    /**
     * true if the device was heard from recently
     */
    val isOnline: Boolean
        get() {
            val now = System.currentTimeMillis() / 1000
            val timeout = 2 * 60 * 60
            return (now - lastHeard <= timeout)
        }

If you open the Users tab it should sort by last heard by default, so the top nodes in the list with a last heard time of < 2h will be these online nodes.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@frantsch
Comment options

Answer selected by jsoberg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants