mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
pngcp.c: correct total time output
Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
parent
9957c45073
commit
a93744423d
@ -2420,12 +2420,12 @@ main(const int argc, const char * const * const argv)
|
|||||||
int output = 0;
|
int output = 0;
|
||||||
|
|
||||||
if ((d.value[OPTIND(&d,time)] & PNGCP_TIME_READ) != 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 ((d.value[OPTIND(&d,time)] & PNGCP_TIME_WRITE) != 0)
|
||||||
{
|
{
|
||||||
if (output) putchar(' ');
|
if (output) putchar(' ');
|
||||||
print_time("write", d.write_time);
|
print_time("write", d.write_time_total);
|
||||||
output = 1;
|
output = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user