aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bin/pgbench/pgbench.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c
index 4676a59020a..9033ff2caae 100644
--- a/src/bin/pgbench/pgbench.c
+++ b/src/bin/pgbench/pgbench.c
@@ -3296,9 +3296,11 @@ printResults(TState *threads, StatsData *total, instr_time total_time,
if (throttle_delay || progress || latency_limit)
printSimpleStats("latency", &total->latency);
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 / total->cnt);
+ 1000.0 * time_include * nclients / total->cnt);
+ }
if (throttle_delay)
{