]> thyrsus.com Git - comparator.git/commitdiff
Better statistics in the count fields.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 17 Sep 2003 16:59:20 +0000 (16:59 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 17 Sep 2003 16:59:20 +0000 (16:59 +0000)
comparator.py

index 378a45e9a0fda177632b660543b4f8be4fd90abd..6d37d3941f6d6c57489c53a58c82a78cffda3636 100644 (file)
@@ -114,8 +114,8 @@ class CommonReport:
             line = self.fp.readline()
             if not line or line == '%%\n':
                 break
-            (tag, value) = line.split(":")
-            self.trees[tag] = int(value.strip())
+            (tag, chunks, lines, totallines) = line.split(":")
+            self.trees[tag] = (int(value), int(chunks), int(lines))
         # Now read the common-segment stuff
         self.cliques = []
         self.files = {}
@@ -223,7 +223,7 @@ class CommonStatistics:
         self.chunks = report.segment_count()
         self.trees = []
         self.normalization = report.normalization
-        for (tree, totallines) in report.trees.items():
+        for (tree, chunks, lines, totallines) in report.trees.items():
             lines = report.line_count(tree)
             self.trees.append((tree, lines, totallines))