Minor fix to static time unit call

master
Randomnicode 5 years ago
parent 666bc66ec8
commit acb4e033aa
  1. 2
      airsonic-main/src/main/java/org/airsonic/player/monitor/MetricsManager.java
  2. 2
      airsonic-main/src/test/java/org/airsonic/player/service/MediaScannerServiceTestCase.java

@ -32,7 +32,7 @@ public class MetricsManager {
// Start a Metrics JMX reporter // Start a Metrics JMX reporter
reporter = JmxReporter.forRegistry(metrics) reporter = JmxReporter.forRegistry(metrics)
.convertRatesTo(TimeUnit.SECONDS.SECONDS) .convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS) .convertDurationsTo(TimeUnit.MILLISECONDS)
.build(); .build();
reporter.start(); reporter.start();

@ -151,7 +151,7 @@ public class MediaScannerServiceTestCase {
// display out metrics report // display out metrics report
ConsoleReporter reporter = ConsoleReporter.forRegistry(metrics) ConsoleReporter reporter = ConsoleReporter.forRegistry(metrics)
.convertRatesTo(TimeUnit.SECONDS.SECONDS) .convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS) .convertDurationsTo(TimeUnit.MILLISECONDS)
.build(); .build();
reporter.report(); reporter.report();

Loading…
Cancel
Save