make logging of insertion speed a little nicer

This commit is contained in:
2020-11-24 10:00:53 +01:00
parent 7ad1e95825
commit 11beda5432

View File

@@ -121,7 +121,7 @@ public class PerformanceDb implements AutoCloseable {
final long duration = end - lastSync; final long duration = end - lastSync;
final long entriesPerSecond = (long) (insertionsSinceLastSync / (duration / 1000.0)); final long entriesPerSecond = (long) (insertionsSinceLastSync / (duration / 1000.0));
METRICS_LOGGER.debug(String.format(Locale.US, "inserting %d/s ; total: %,d; last: %s", METRICS_LOGGER.debug(String.format(Locale.US, "inserting %,11d/s ; total: %,d; last: %s",
entriesPerSecond, count, entry)); entriesPerSecond, count, entry));
lastSync = System.currentTimeMillis(); lastSync = System.currentTimeMillis();