Minor fix to static time unit call
This commit is contained in:
@@ -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();
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user