From: Paul Eggert Date: Sat, 25 Sep 1999 00:25:36 +0000 (+0000) Subject: (print_total_written): Use a format compatible with X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=10f585ea2f69d33408226b310a0d5548220a2c48;p=chaz%2Ftar (print_total_written): Use a format compatible with Amanda 2.4.1p1. --- 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)