From: Eric S. Raymond Date: Wed, 17 Sep 2003 16:59:20 +0000 (+0000) Subject: Better statistics in the count fields. X-Git-Tag: 2.0~24 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=da212588179e499373d66038a27dae80e5af42e5;p=comparator.git Better statistics in the count fields. --- diff --git a/comparator.py b/comparator.py index 378a45e..6d37d39 100644 --- a/comparator.py +++ b/comparator.py @@ -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))