From: Sergey Poznyakoff Date: Tue, 21 Jan 2014 11:05:16 +0000 (+0200) Subject: Implement statistics display in checkpoint actions. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=f0a1f78196f75678424712ac36f0a4a46e3e5658;hp=f0a1f78196f75678424712ac36f0a4a46e3e5658;p=chaz%2Ftar Implement statistics display in checkpoint actions. * NEWS: Update. * configure.ac: Version 1.27.90 * gnulib.modules: Add fprintftime. * doc/tar.texi: Document the "totals" action and new format specifiers for echo and ttyout checkpoint actions. * src/buffer.c (compute_duration): Return computed value. (print_stats): Don't print trailing newline. Return number of characters output. (format_total_stats): New function. (print_total_stats): Rewrite via format_total_stats. * src/checkpoint.c (checkpoint_opcode) : New opcode. (checkpoint_compile_action): Handle cop_totals. (expand_checkpoint_string): Remove. (format_checkpoint_string): New function to be used instead of expand_checkpoint_string. All callers updated. * src/common.h (TF_READ,TF_WRITE) (TF_DELETED): New constants. (format_total_stats,print_total_stats): New protos. ---