Commit 5515ec0
committed
Fix calculation of latency of pgbench backslash commands.
When we loop back to the top of doCustom after processing a backslash
command, we must reset the "now" timestamp, because that's used to
calculate the time spent executing the previous command.
Report and fix by Fabien Coelho. Backpatch to 9.5, where this was broken.1 parent a293228 commit 5515ec0
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1135 | 1135 | | |
1136 | 1136 | | |
1137 | 1137 | | |
1138 | | - | |
| 1138 | + | |
| 1139 | + | |
1139 | 1140 | | |
| 1141 | + | |
1140 | 1142 | | |
1141 | 1143 | | |
1142 | | - | |
1143 | 1144 | | |
1144 | 1145 | | |
1145 | 1146 | | |
| |||
0 commit comments