]> 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:24 +0000 (13:16 +0300)
commitf16d4a241594bb198e1abedb5e43977ef796370a
tree5a8a438d053755747b710879b239f5a1517dd994
parent431a056271ff525661e85c781f817b3036c6e263
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>
contrib/pgbench/pgbench.c