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 <[email protected]>
Authored: Wed Nov 9 09:41:57 2016 -0500
Committer: Scott Aslan <[email protected]>
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

Reply via email to