Merge "Add metric for sum of SHA1s"
diff --git a/multi-primary/globalrefdb.groovy b/multi-primary/globalrefdb.groovy
index 33ee85d..8736b9e 100644
--- a/multi-primary/globalrefdb.groovy
+++ b/multi-primary/globalrefdb.groovy
@@ -82,11 +82,12 @@
           upToDate = checkRef(projectName, repo, ref)
         } else {
           println "Checking project $project ..."
-          def totRefs = repo.refDatabase.refs.size()
+          def refsToCheck = repo.refDatabase.refs.findAll {elem -> elem.name =~ "refs/changes.*/meta" || !elem.name.startsWith("refs/changes")}
+          def totRefs = refsToCheck.size()
           def refsDone = 0
           def refsDonePerc = 0
           def startTime = System.currentTimeMillis()
-          repo.refDatabase.refs.parallelStream().forEach { ref ->
+          refsToCheck.parallelStream().forEach { ref ->
             def refUpToDate = checkRef(projectName, repo, ref)
             upToDate = upToDate && refUpToDate
             if (!verbose) {