Commits

Travis Shirk committed 6bee8f4

Correctly count total for the rules stat.

  • Participants
  • Parent commits beb4ba6
  • Branches stable

Comments (0)

Files changed (1)

File src/eyed3/plugins/statistics.py

         self._stats.append(Id3VersionCounter())
         self._stats.append(Id3FrameCounter())
         self._stats.append(BitrateCounter())
-        self._stats.append(self._rules_stat)
 
         self._score_sum = 0
         self._score_count = 0
                     # += because negative values are returned
                     total_score += score
 
+        if total_score != 100:
+            self._rules_stat[Stat.TOTAL] += 1
+
         self._score_sum += total_score
 
     def handleDone(self):
+
         print()
-        for stat in self._stats:
+        for stat in self._stats + [self._rules_stat]:
             stat.report()
             print()