mirror of
https://github.com/apache/nifi.git
synced 2025-02-16 15:06:00 +00:00
NIFI-3009:
- Fixing NaN error when backpressure is not configured. This closes #1200
This commit is contained in:
parent
b426de1793
commit
f83863ebae
@ -1362,7 +1362,11 @@ nf.Connection = (function () {
|
|||||||
.duration(400)
|
.duration(400)
|
||||||
.attr({
|
.attr({
|
||||||
'width': function (d) {
|
'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 () {
|
}).each('end', function () {
|
||||||
backpressurePercentDataSize
|
backpressurePercentDataSize
|
||||||
@ -1398,7 +1402,11 @@ nf.Connection = (function () {
|
|||||||
.duration(400)
|
.duration(400)
|
||||||
.attr({
|
.attr({
|
||||||
'width': function (d) {
|
'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 () {
|
}).each('end', function () {
|
||||||
backpressurePercentObject
|
backpressurePercentObject
|
||||||
|
Loading…
x
Reference in New Issue
Block a user