Skip to content

Commit

Permalink
fix for negative number
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitsuthar committed Oct 10, 2024
1 parent 18f9c3c commit 3f62989
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function generateIASTDataRequest() {
if (isNaN(scanRateLimitFromConfig)) {
scanRateLimit = 3600;
}
if (scanRateLimit >= 0) {
if (scanRateLimit) {
batchSize = parseInt(scanRateLimit / 12);
if (scanRateLimit < 12) {
batchSize = 1;
Expand Down

0 comments on commit 3f62989

Please sign in to comment.