pngcp.c: correct total time output

Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
John Bowler 2016-07-01 08:14:05 -07:00
parent 9957c45073
commit a93744423d

View File

@ -2420,12 +2420,12 @@ main(const int argc, const char * const * const argv)
int output = 0;
if ((d.value[OPTIND(&d,time)] & PNGCP_TIME_READ) != 0)
print_time("read", d.read_time), output = 1;
print_time("read", d.read_time_total), output = 1;
if ((d.value[OPTIND(&d,time)] & PNGCP_TIME_WRITE) != 0)
{
if (output) putchar(' ');
print_time("write", d.write_time);
print_time("write", d.write_time_total);
output = 1;
}