From c2c26c128bac34a704707eb80df4895a29f5d5d0 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 15 Jun 2015 18:38:37 +0000 Subject: si-report: Fix algorithm for determing difference in shader stats --- si-report.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/si-report.py b/si-report.py index fbeed11..ec88112 100755 --- a/si-report.py +++ b/si-report.py @@ -145,7 +145,13 @@ class si_stats: self.__dict__[name] += 1 def is_empty(self): - return sum(map(lambda x : x[0] if type(x) == tuple else x, self.__dict__.values())) == 0 + for name in self.__dict__.keys(): + x = self.__dict__[name] + if type(x) == tuple and x[0] is not 0: + return False + if type(x) != tuple and x is not 0: + return False + return True def get_results(filename): file = open(filename, "r") -- cgit v1.2.3