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

From Heikki Linnakangas
Subject pgsql: Fix pgbench's calculation of average latency, when -T is not use
Date
Msg-id E1bmejp-000108-QA@gemulon.postgresql.org
Whole thread Raw
List 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.DEB.2.20.1607131015370.7486@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(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Print test parameters like "foo: 123", and results like "foo = 1
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix pgbench's calculation of average latency, when -T is not use