aboutsummaryrefslogtreecommitdiff
path: root/src/alf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alf.c')
-rw-r--r--src/alf.c10
1 files changed, 6 insertions, 4 deletions
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);