]> granicus.if.org Git - postgresql/commit
Fix pgbench's calculation of average latency, when -T is not used.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 21 Sep 2016 10:14:48 +0000 (13:14 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 21 Sep 2016 10:16:20 +0000 (13:16 +0300)
commitb93d37474fdf31d2cd71c13f014b481863abb7c2
tree9ba6622e16e3fbc076b5bff89e5a25818fb6187d
parent923ad1a16ae2b399e78447581b9de65a0e2a439a
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>
src/bin/pgbench/pgbench.c