pgsql: Fix pgbench's calculation of average latency, when -T is not use

Lists: pgsql-committers
From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix pgbench's calculation of average latency, when -T is not use
Date: 2016-09-21 10:26:49
Message-ID: E1bmejp-000101-Q1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

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(dot)DEB(dot)2(dot)20(dot)1607131015370(dot)7486(at)sto>

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/93834a20f67ee458c98067e253894457c5a958ad

Modified Files
--------------
src/bin/pgbench/pgbench.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)