Fix pgbench's calculation of average latency, when -T is not used.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: b93d37474fdf31d2cd71c13f014b481863abb7c2
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2016-09-21T10:16:20Z
Releases: 9.5.5
Fix pgbench's calculation of average latency, when -T is not used.

If the test duration was given in # of transactions (-t or no option),
rather as a duration (-T), the latency average was always printed as 0.
It has been broken ever since the display of latency average was added,
in 9.4.

Fabien Coelho

Discussion: <alpine.DEB.2.20.1607131015370.7486@sto>

Files

PathChange+/−
src/bin/pgbench/pgbench.c modified +2 −2