From 800e977c2ea1e097c4b7332b18a5fc03089603c1 Mon Sep 17 00:00:00 2001 From: M Joonas Pihlaja Date: Thu, 17 Jun 2010 14:27:13 +0300 Subject: perf: Allow comparing perf reports with only one difference. The cairo-perf-diff-files tool would ignore perf reports with just one test for no apparent reason. The traces take so long that it's useful to be able to compare runs with just one trace. --- perf/cairo-perf-diff-files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perf/cairo-perf-diff-files.c b/perf/cairo-perf-diff-files.c index a04014ca..056d7ece 100644 --- a/perf/cairo-perf-diff-files.c +++ b/perf/cairo-perf-diff-files.c @@ -314,7 +314,7 @@ cairo_perf_reports_compare (cairo_perf_report_t *reports, diff++; num_diffs++; } - if (num_diffs < 2) + if (num_diffs == 0) goto DONE; if (num_reports == 2) -- cgit v1.2.3