print metrics every 10 seconds, not every 10.001 seconds
This commit is contained in:
@@ -89,7 +89,7 @@ public class PerformanceDb implements AutoCloseable {
|
||||
count++;
|
||||
insertionsSinceLastSync++;
|
||||
|
||||
if (nextSync < System.currentTimeMillis()) {
|
||||
if (nextSync <= System.currentTimeMillis()) {
|
||||
final long end = System.currentTimeMillis();
|
||||
final long duration = end - lastSync;
|
||||
final long entriesPerSecond = (long) (insertionsSinceLastSync / (duration / 1000.0));
|
||||
|
||||
Reference in New Issue
Block a user