From 7b0044a824a73f63461b0812b6fa29264319dc72 Mon Sep 17 00:00:00 2001 From: Ivan Smirnov Date: Mon, 3 Jan 2022 15:18:50 +0300 Subject: [PATCH] qoi-bench: only report totals if more than one png --- qoi-bench/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qoi-bench/src/main.rs b/qoi-bench/src/main.rs index 9462463..fedd22f 100644 --- a/qoi-bench/src/main.rs +++ b/qoi-bench/src/main.rs @@ -381,7 +381,9 @@ fn bench_suite(files: &[PathBuf], seconds: f64, use_median: bool) -> Result<()> } } } - totals.report(use_median); + if totals.results.len() > 1 { + totals.report(use_median); + } Ok(()) }