From bcbedf444f96ea88d6a138b8af0266308b8565ce Mon Sep 17 00:00:00 2001 From: Jeyrs Chabu Date: Thu, 21 Nov 2019 14:38:11 -0800 Subject: [PATCH] fix(core): Fixing number of marked resources counter (#305) - updated to not count all marked resources from the database --- .../netflix/spinnaker/swabbie/AbstractResourceTypeHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swabbie-core/src/main/kotlin/com/netflix/spinnaker/swabbie/AbstractResourceTypeHandler.kt b/swabbie-core/src/main/kotlin/com/netflix/spinnaker/swabbie/AbstractResourceTypeHandler.kt index b6fc7bb8..3ea056ce 100644 --- a/swabbie-core/src/main/kotlin/com/netflix/spinnaker/swabbie/AbstractResourceTypeHandler.kt +++ b/swabbie-core/src/main/kotlin/com/netflix/spinnaker/swabbie/AbstractResourceTypeHandler.kt @@ -291,7 +291,7 @@ abstract class AbstractResourceTypeHandler( violationCounter, candidateCounter, totalResourcesVisitedCounter, - resourceRepository.getNumMarkedResources() + markedResources.size.toLong() ) } }