From 10f585ea2f69d33408226b310a0d5548220a2c48 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 25 Sep 1999 00:25:36 +0000 Subject: [PATCH] (print_total_written): Use a format compatible with Amanda 2.4.1p1. --- src/buffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index 704b720..e77f47c 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -169,7 +169,9 @@ print_total_written (void) seconds = time (0) - start_time; sprintf (bytes, TARLONG_FORMAT, written); - fprintf (stderr, _("Total written: %s bytes (%sB, %sB/s)\n"), bytes, + + /* Amanda 2.4.1p1 looks for "Total bytes written: [0-9][0-9]*". */ + fprintf (stderr, _("Total bytes written: %s (%sB, %sB/s)\n"), bytes, human_readable ((uintmax_t) written, abbr, 1, -1024), (0 < seconds && written / seconds < (uintmax_t) -1 ? human_readable ((uintmax_t) (written / seconds), rate, 1, -1024) -- 2.44.0