From acb4e033aa424ce07bcd1b5dd7fc58d7fd29a58e Mon Sep 17 00:00:00 2001 From: Randomnicode Date: Mon, 21 Oct 2019 11:55:01 -0700 Subject: [PATCH] Minor fix to static time unit call --- .../main/java/org/airsonic/player/monitor/MetricsManager.java | 2 +- .../airsonic/player/service/MediaScannerServiceTestCase.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airsonic-main/src/main/java/org/airsonic/player/monitor/MetricsManager.java b/airsonic-main/src/main/java/org/airsonic/player/monitor/MetricsManager.java index 862efae5..c88e7a84 100644 --- a/airsonic-main/src/main/java/org/airsonic/player/monitor/MetricsManager.java +++ b/airsonic-main/src/main/java/org/airsonic/player/monitor/MetricsManager.java @@ -32,7 +32,7 @@ public class MetricsManager { // Start a Metrics JMX reporter reporter = JmxReporter.forRegistry(metrics) - .convertRatesTo(TimeUnit.SECONDS.SECONDS) + .convertRatesTo(TimeUnit.SECONDS) .convertDurationsTo(TimeUnit.MILLISECONDS) .build(); reporter.start(); diff --git a/airsonic-main/src/test/java/org/airsonic/player/service/MediaScannerServiceTestCase.java b/airsonic-main/src/test/java/org/airsonic/player/service/MediaScannerServiceTestCase.java index f7c895f6..cceb3f92 100644 --- a/airsonic-main/src/test/java/org/airsonic/player/service/MediaScannerServiceTestCase.java +++ b/airsonic-main/src/test/java/org/airsonic/player/service/MediaScannerServiceTestCase.java @@ -151,7 +151,7 @@ public class MediaScannerServiceTestCase { // display out metrics report ConsoleReporter reporter = ConsoleReporter.forRegistry(metrics) - .convertRatesTo(TimeUnit.SECONDS.SECONDS) + .convertRatesTo(TimeUnit.SECONDS) .convertDurationsTo(TimeUnit.MILLISECONDS) .build(); reporter.report();