warble-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject [incubator-warble-server] 04/05: only bork if the node is active
Date Sun, 01 Jul 2018 14:58:24 GMT
This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-warble-server.git

commit a8d0e9bfcf52b9272afc37080151535a526b906b
Author: Daniel Gruno <humbedooh@apache.org>
AuthorDate: Sun Jul 1 09:58:01 2018 -0500

    only bork if the node is active
    
    if a node is inactive, it shouldn't complain about inactivity in the
    same way as with an active node.
---
 ui/js/coffee/warble_clientlist.coffee | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/js/coffee/warble_clientlist.coffee b/ui/js/coffee/warble_clientlist.coffee
index 3f35b18..e668ffc 100644
--- a/ui/js/coffee/warble_clientlist.coffee
+++ b/ui/js/coffee/warble_clientlist.coffee
@@ -218,8 +218,8 @@ clientlist = (json, state) ->
             ])
             d.inject(line)
             
-            # Check for inactive (dead?) nodes
-            if (moment(now).unix() - moment(lp).unix() > 900)
+            # Check for inactive (dead?) nodes - only enabled ones, of course.
+            if source.enabled and (moment(now).unix() - moment(lp).unix() > 900)
                 card.setAttribute("class", "clientcard red")
                 line.inject(txt(" - Node dead?!"))
                 lline.inject(txt(" - (no contact for > 15 minutes!)"))


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@warble.apache.org
For additional commands, e-mail: commits-help@warble.apache.org


Mime
View raw message