Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DDAA0200BBB for ; Thu, 10 Nov 2016 17:43:16 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DC6DE160AF7; Thu, 10 Nov 2016 16:43:16 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 33DF0160B11 for ; Thu, 10 Nov 2016 17:43:16 +0100 (CET) Received: (qmail 7765 invoked by uid 500); 10 Nov 2016 16:43:15 -0000 Mailing-List: contact commits-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list commits@nifi.apache.org Received: (qmail 7744 invoked by uid 99); 10 Nov 2016 16:43:15 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Nov 2016 16:43:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 4144EE01F4; Thu, 10 Nov 2016 16:43:15 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: scottyaslan@apache.org To: commits@nifi.apache.org Message-Id: <32eb849ef98145279d5ff693bdd59979@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: nifi git commit: NIFI-3009: - Fixing NaN error when backpressure is not configured. This closes #1200 Date: Thu, 10 Nov 2016 16:43:15 +0000 (UTC) archived-at: Thu, 10 Nov 2016 16:43:17 -0000 Repository: nifi Updated Branches: refs/heads/apache-master [created] f83863eba NIFI-3009: - Fixing NaN error when backpressure is not configured. This closes #1200 Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/f83863eb Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/f83863eb Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/f83863eb Branch: refs/heads/apache-master Commit: f83863ebae700ade07aa8b93ac1e2d82a6cf053c Parents: b426de1 Author: Matt Gilman Authored: Wed Nov 9 09:41:57 2016 -0500 Committer: Scott Aslan Committed: Thu Nov 10 11:39:08 2016 -0500 ---------------------------------------------------------------------- .../src/main/webapp/js/nf/canvas/nf-connection.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi/blob/f83863eb/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection.js ---------------------------------------------------------------------- diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection.js index 081c9dd..8cf4271 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-connection.js @@ -1362,7 +1362,11 @@ nf.Connection = (function () { .duration(400) .attr({ 'width': function (d) { - return (backpressureBarWidth * d.status.aggregateSnapshot.percentUseBytes) / 100; + if (nf.Common.isDefinedAndNotNull(d.status.aggregateSnapshot.percentUseBytes)) { + return (backpressureBarWidth * d.status.aggregateSnapshot.percentUseBytes) / 100; + } else { + return 0; + } } }).each('end', function () { backpressurePercentDataSize @@ -1398,7 +1402,11 @@ nf.Connection = (function () { .duration(400) .attr({ 'width': function (d) { - return (backpressureBarWidth * d.status.aggregateSnapshot.percentUseCount) / 100; + if (nf.Common.isDefinedAndNotNull(d.status.aggregateSnapshot.percentUseCount)) { + return (backpressureBarWidth * d.status.aggregateSnapshot.percentUseCount) / 100; + } else { + return 0; + } } }).each('end', function () { backpressurePercentObject