mirror of https://github.com/apache/nifi.git
NIFI-5796 Addressed bug in subtract() method for keeping running total of counters for status history
This closes #3136. Signed-off-by: Bryan Bende <bbende@apache.org>
This commit is contained in:
parent
4069d75550
commit
da1f9eaf6a
|
@ -180,7 +180,7 @@ public class EventSumValue {
|
|||
final String counterName = entry.getKey();
|
||||
final Long counterValue = entry.getValue();
|
||||
|
||||
counters.compute(counterName, (key, value) -> value == null ? counterValue : counterValue - value);
|
||||
counters.compute(counterName, (key, value) -> value == null ? -counterValue : value - counterValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue