File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
flinkx-core/src/main/java/com/dtstack/flinkx Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,8 @@ private static void speedTest(DataTransferConfig config) {
189189 } else if (WRITER .equalsIgnoreCase (testConfig .getSpeedTest ())){
190190 ContentConfig contentConfig = config .getJob ().getContent ().get (0 );
191191 contentConfig .getReader ().setName (STREAM_READER );
192+ }else {
193+ return ;
192194 }
193195
194196 config .getJob ().getSetting ().getSpeed ().setBytes (-1 );
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ private void updateRate(){
8787 BigDecimal thisWriteRatio = BigDecimal .valueOf (totalRecords == 0 ? 0 : thisRecords / (double ) totalRecords );
8888
8989 if (totalRecords > MIN_RECORD_NUMBER_UPDATE_RATE && totalBytes != 0
90- && thisWriteRatio .compareTo (new BigDecimal ( 0 )) = = 0 ) {
90+ && thisWriteRatio .compareTo (BigDecimal . ZERO ) ! = 0 ) {
9191 double bpr = totalBytes / (double )totalRecords ;
9292 double permitsPerSecond = expectedBytePerSecond / bpr * thisWriteRatio .doubleValue ();
9393 rateLimiter .setRate (permitsPerSecond );
You can’t perform that action at this time.
0 commit comments