Commit 65c6556
committed
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>1 parent 46b55e7 commit 65c6556
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3296 | 3296 | | |
3297 | 3297 | | |
3298 | 3298 | | |
3299 | | - | |
| 3299 | + | |
| 3300 | + | |
3300 | 3301 | | |
3301 | | - | |
| 3302 | + | |
| 3303 | + | |
3302 | 3304 | | |
3303 | 3305 | | |
3304 | 3306 | | |
| |||
0 commit comments