diff options
| author | B. Watson <urchlay@slackware.uk> | 2025-12-08 05:22:17 -0500 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2025-12-08 05:22:17 -0500 |
| commit | a9b8e2543787a3b174968645d607b9c067cc8049 (patch) | |
| tree | 6f942aeba2afe3e6b433b567697d0a15ae758694 | |
| parent | 6dc74846a972f5263cd9b5553d19d88237872e6b (diff) | |
| download | alftools-a9b8e2543787a3b174968645d607b9c067cc8049.tar.gz | |
alf -vv: don't show total compression ratio if only compressing one file.
| -rw-r--r-- | CHANGES.txt | 1 | ||||
| -rw-r--r-- | src/alf.c | 10 | ||||
| -rw-r--r-- | src/alfsum.1 | 2 | ||||
| -rw-r--r-- | src/unalf.1 | 2 |
4 files changed, 9 insertions, 6 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index bf1156a..2c3cae3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,7 @@ 0.4.0: - alf and unalf now detect duplicate Atari filenames. - alf lets the user set the archive filename for each file (file=FILE, e.g.) +- alf is 30% faster than it was in 0.3.2. - unalf can extract by file number (-n) rather than wildcards. - unalf can split an ALF file into multiple ALF files (-s option) without extracting. @@ -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); diff --git a/src/alfsum.1 b/src/alfsum.1 index d0d1f83..e81acfa 100644 --- a/src/alfsum.1 +++ b/src/alfsum.1 @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. -.TH "ALFSUM" 1 "2025-12-04" "0.4.0" "Urchlay's Atari 8-bit Tools" +.TH "ALFSUM" 1 "2025-12-08" "0.4.0" "Urchlay's Atari 8-bit Tools" .SH NAME alfsum \- calculate ALF checksums .\" RST source for alfsum(1) man page. Convert with: diff --git a/src/unalf.1 b/src/unalf.1 index 4767cf1..52aecef 100644 --- a/src/unalf.1 +++ b/src/unalf.1 @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. -.TH "UNALF" 1 "2025-12-06" "0.4.0" "Urchlay's Atari 8-bit Tools" +.TH "UNALF" 1 "2025-12-08" "0.4.0" "Urchlay's Atari 8-bit Tools" .SH NAME unalf \- extract Atari 8-bit ALF archives .\" RST source for unalf(1) man page. Convert with: |
