From commits-return-146-archive-asf-public=cust-asf.ponee.io@warble.apache.org Sun Jul 1 16:58:23 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 03361180771 for ; Sun, 1 Jul 2018 16:58:21 +0200 (CEST) Received: (qmail 82222 invoked by uid 500); 1 Jul 2018 14:58:21 -0000 Mailing-List: contact commits-help@warble.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@warble.apache.org Delivered-To: mailing list commits@warble.apache.org Received: (qmail 82152 invoked by uid 99); 1 Jul 2018 14:58:21 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2018 14:58:21 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 89E7082A2B; Sun, 1 Jul 2018 14:58:20 +0000 (UTC) Date: Sun, 01 Jul 2018 14:58:24 +0000 To: "commits@warble.apache.org" Subject: [incubator-warble-server] 04/05: only bork if the node is active MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: humbedooh@apache.org In-Reply-To: <153045710043.27715.5135967306385601530@gitbox.apache.org> References: <153045710043.27715.5135967306385601530@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-warble-server X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Rev: a8d0e9bfcf52b9272afc37080151535a526b906b X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20180701145820.89E7082A2B@gitbox.apache.org> 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 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