From 31adc7e4659a45de69d044e32c7f5a8b2f2aca09 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 3 Aug 2019 10:39:16 +0200 Subject: [PATCH] =?utf8?q?=F0=9F=93=88=20Add=20different=20configuration?= =?utf8?q?=20for=20other=20histogram?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/core/SoneInserter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java index e138f79..07c96c4 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneInserter.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneInserter.java @@ -151,7 +151,7 @@ public class SoneInserter extends AbstractService { this.core = core; this.eventBus = eventBus; this.freenetInterface = freenetInterface; - this.soneInsertDurationHistogram = metricRegistry.histogram("sone.insert.duration"); + this.soneInsertDurationHistogram = metricRegistry.histogram("sone.insert.duration", () -> new Histogram(new ExponentiallyDecayingReservoir(3000, 0))); this.soneInsertErrorMeter = metricRegistry.meter("sone.insert.errors"); this.soneId = soneId; this.soneModificationDetector = soneModificationDetector; -- 2.7.4