related to issue 40747: improved comment
authorAsier Lostalé <asier.lostale@openbravo.com>
Fri, 17 May 2019 09:49:39 +0200
changeset 35803 59e2bd0cc7fa
parent 35802 147621d18a4d
child 35804 1596542c21af
related to issue 40747: improved comment
src/org/openbravo/service/importprocess/ImportEntryManager.java
--- a/src/org/openbravo/service/importprocess/ImportEntryManager.java	Fri May 03 03:07:04 2019 +0530
+++ b/src/org/openbravo/service/importprocess/ImportEntryManager.java	Fri May 17 09:49:39 2019 +0200
@@ -629,11 +629,12 @@
               // a next batch of entries to prevent retrieving from DB the same records we have just
               // handled in this cycle
               try {
-                // wait processingCapacityPerSecond which is the expected entries number of entries
-                // that can be processed per second, it defaults to one second per 30 records per
+                // wait a time based on the number of processed entries and
+                // processingCapacityPerSecond (which is the expected number of entries that can be
+                // processed per second), it defaults to one second per 30 records per
                 // thread, somewhat arbitrary but high enough for most cases, also always wait 300
-                // milliseconds additional to start up threads etc.
-                // note computation of timing ensures that int rounding is done on 1000* entrycount
+                // milliseconds additional to start up threads etc. note computation of timing
+                // ensures that int rounding is done on 1000* entrycount
 
                 // wait minimal 2 seconds or based on entry count, no minimal wait in case of test
                 int minWait = isTest ? 0 : 2_000;