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
reporter = JmxReporter.forRegistry(metrics)
.convertRatesTo(TimeUnit.SECONDS.SECONDS)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.build();
reporter.start();

@ -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();

Loading…
Cancel
Save