pgbench-rate-bug-1.patch

text/x-diff

Filename: pgbench-rate-bug-1.patch
Type: text/x-diff
Part: 0
Message: Re: pgbench - minor fix for meta command only scripts

Patch

Format: unified
File+
src/bin/pgbench/pgbench.c 1 1
diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c
index 364e254..3e23a6a 100644
--- a/src/bin/pgbench/pgbench.c
+++ b/src/bin/pgbench/pgbench.c
@@ -4587,7 +4587,7 @@ threadRun(void *arg)
 		 * or it's time to print a progress report.  Update input_mask to show
 		 * which client(s) received data.
 		 */
-		if (min_usec > 0 && maxsock != -1)
+		if (min_usec > 0 || maxsock != -1)
 		{
 			int			nsocks; /* return from select(2) */