From 954916d9a5f54da9838ce5bc8c203fab05e9497c Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Wed, 17 Jan 2024 10:49:34 +0100 Subject: [PATCH] Polish --- .../core/instrument/distribution/HistogramGauges.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micrometer-core/src/main/java/io/micrometer/core/instrument/distribution/HistogramGauges.java b/micrometer-core/src/main/java/io/micrometer/core/instrument/distribution/HistogramGauges.java index 242661852b..0ab675d340 100644 --- a/micrometer-core/src/main/java/io/micrometer/core/instrument/distribution/HistogramGauges.java +++ b/micrometer-core/src/main/java/io/micrometer/core/instrument/distribution/HistogramGauges.java @@ -116,7 +116,7 @@ private HistogramGauges(HistogramSupport meter, MeterRegistry registry, ToDoubleFunction percentileValueFunction = m -> { snapshotIfNecessary(); polledGaugesLatch.countDown(); - return percentileValue.apply(snapshot.percentileValues()[index]); + return percentileValue.apply(valueAtPercentiles[index]); }; Gauge.builder(percentileName.apply(valueAtPercentiles[i]), meter, percentileValueFunction)