details:   https://code.openbravo.com/erp/devel/pi/rev/59e2bd0cc7fa
changeset: 35803:59e2bd0cc7fa
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Fri May 17 09:49:39 2019 +0200
summary:   related to issue 40747: improved comment

diffstat:

 src/org/openbravo/service/importprocess/ImportEntryManager.java |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (20 lines):

diff -r 147621d18a4d -r 59e2bd0cc7fa 
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;


_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to