From a9b8e2543787a3b174968645d607b9c067cc8049 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 8 Dec 2025 05:22:17 -0500 Subject: alf -vv: don't show total compression ratio if only compressing one file. --- src/alf.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/alf.c') diff --git a/src/alf.c b/src/alf.c index a19487c..fe9c342 100644 --- a/src/alf.c +++ b/src/alf.c @@ -354,10 +354,12 @@ int main(int argc, char **argv) { if(out_file) fclose(out_file); if(opt_verbose > 1) { - printf("Compressed %d file%s: ", file_count, file_count == 1 ? "" : "s"); - printf("%u/%u (%d%%)\n", - total_in, total_out, - percent(total_out, total_in)); + if(file_count > 1) { + printf("Compressed %d file%s: ", file_count, file_count == 1 ? "" : "s"); + printf("%u/%u (%d%%)\n", + total_in, total_out, + percent(total_out, total_in)); + } print_elapsed_time(); if(backup_msg) { printf("Backed up old '%s' to '%s~'.\n", out_filename, out_filename); -- cgit v1.2.3