This is an automated email from the ASF dual-hosted git repository.

mappjzc pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new a9aa01a34 fix: sonar issue collector, split time range until 
createdBefore createdAfter equal (#5443)
a9aa01a34 is described below

commit a9aa01a3471d6bafb03403a9b88f13fae44822c2
Author: Leric Zhang <[email protected]>
AuthorDate: Tue Jun 13 10:52:52 2023 +0800

    fix: sonar issue collector, split time range until createdBefore 
createdAfter equal (#5443)
---
 backend/plugins/sonarqube/tasks/issues_collector.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backend/plugins/sonarqube/tasks/issues_collector.go 
b/backend/plugins/sonarqube/tasks/issues_collector.go
index 5ba56aaa5..c7fe5e30c 100644
--- a/backend/plugins/sonarqube/tasks/issues_collector.go
+++ b/backend/plugins/sonarqube/tasks/issues_collector.go
@@ -119,8 +119,8 @@ func CollectIssues(taskCtx plugin.SubTaskContext) (err 
errors.Error) {
                                }
 
                                // can not split it any more
-                               if createdBeforeUnix-createdAfterUnix < 1 {
-                                       return 100, nil
+                               if createdBeforeUnix-createdAfterUnix <= 10 {
+                                       return pages, nil
                                }
 
                                // split it

Reply via email to