qoi-bench: only report totals if more than one png

This commit is contained in:
Ivan Smirnov 2022-01-03 15:18:50 +03:00
parent feaac28244
commit 7b0044a824

View file

@ -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(()) Ok(())
} }