diff --git a/src/bin/pg_basebackup/receivelog.c b/src/bin/pg_basebackup/receivelog.c index d05a588b3ae..1e09012bfc7 100644 --- a/src/bin/pg_basebackup/receivelog.c +++ b/src/bin/pg_basebackup/receivelog.c @@ -433,7 +433,7 @@ ReceiveXlogStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, timeout.tv_sec = 1; /* Always sleep at least 1 sec */ else timeout.tv_sec = secs; - timeout.tv_sec = usecs; + timeout.tv_usec = usecs; timeoutptr = &timeout; } else