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

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: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
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_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/f16d4a241594bb198e1abedb5e43977ef796370a

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

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-09-21 12:43:33 pgsql: Add more parallel query documentation.
Previous Message Michael Paquier 2016-09-21 01:54:23 Re: pgsql: Re-add translation markers that were lost