summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/pgbench/pgbench.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c
index 807d7dcdb8d..ee2df8fb33c 100644
--- a/contrib/pgbench/pgbench.c
+++ b/contrib/pgbench/pgbench.c
@@ -2353,9 +2353,9 @@ printResults(int ttype, int64 normal_xacts, int nclients,
}
else
{
- /* only an average latency computed from the duration is available */
+ /* no measurement, show average latency computed from run time */
printf("latency average: %.3f ms\n",
- 1000.0 * duration * nclients / normal_xacts);
+ 1000.0 * time_include * nclients / normal_xacts);
}
if (throttle_delay)