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:
Mark Payne 2018-11-06 17:38:46 -05:00 committed by Bryan Bende
parent 4069d75550
commit da1f9eaf6a
No known key found for this signature in database
GPG Key ID: A0DDA9ED50711C39
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}
}