log ppm instead of docs/second

pull/1/head
Michael Peter Christen 11 years ago
parent cc0ded7abd
commit a1e8bdd5e9

@ -1310,7 +1310,7 @@ public class CollectionConfiguration extends SchemaConfiguration implements Seri
proccount++; allcount.incrementAndGet(); proccount++; allcount.incrementAndGet();
if (proccount % 100 == 0) { if (proccount % 100 == 0) {
postprocessingActivity = "postprocessed " + proccount + " from " + count + " collection documents; " + postprocessingActivity = "postprocessed " + proccount + " from " + count + " collection documents; " +
(proccount * 1000 / (System.currentTimeMillis() - start)) + " docs/second; " + (proccount * 60000 / (System.currentTimeMillis() - start)) + " ppm; " +
((System.currentTimeMillis() - start) * (count - proccount) / proccount / 60000) + " minutes remaining"; ((System.currentTimeMillis() - start) * (count - proccount) / proccount / 60000) + " minutes remaining";
ConcurrentLog.info("CollectionConfiguration", postprocessingActivity); ConcurrentLog.info("CollectionConfiguration", postprocessingActivity);
} }

Loading…
Cancel
Save