Skip to content

Commit

Permalink
NIFI-13657 Fix NodeStatusDescriptor for PROCESSOR_LOAD_AVERAGE to hav…
Browse files Browse the repository at this point in the history
…e correct ValueReducer
  • Loading branch information
bbende committed Aug 14, 2024
1 parent 89c7579 commit 217afa1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public Long reduce(final List<StatusSnapshot> values) {
@Override
public Long reduce(final List<StatusSnapshot> values) {
return (long) values.stream()
.map(snapshot -> snapshot.getStatusMetric(HEAP_UTILIZATION.getDescriptor()))
.map(snapshot -> snapshot.getStatusMetric(PROCESSOR_LOAD_AVERAGE.getDescriptor()))
.filter(Objects::nonNull)
.mapToLong(value -> value)
.average()
Expand Down

0 comments on commit 217afa1

Please sign in to comment.