Lines Matching refs:diff
906 diff = new.get(name, 0) - old.get(name, 0)
907 if diff > 0:
908 grow, up = grow + 1, up + diff
909 elif diff < 0:
910 shrink, down = shrink + 1, down - diff
911 delta.append([diff, name])
925 for diff, name in delta:
926 if diff:
927 color = self.col.RED if diff > 0 else self.col.GREEN
929 old.get(name, '-'), new.get(name,'-'), diff)
948 diff = result[name]
951 if diff != 0:
952 color = self.col.RED if diff > 0 else self.col.GREEN
953 msg = ' %s %+d' % (name, diff)
1016 diff = sizes[image][part] - base_image[part]
1018 if diff:
1023 err[name] = diff
1043 for name, diff in result.iteritems():
1046 total += diff
1048 totals[name] += diff
1050 totals[name] = diff
1057 diff = totals[name]
1058 if diff:
1061 avg_diff = float(diff) / count