]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Refactor DetermineSleepTime() to use milliseconds.
authorThomas Munro <tmunro@postgresql.org>
Thu, 12 Jan 2023 02:04:08 +0000 (15:04 +1300)
committerThomas Munro <tmunro@postgresql.org>
Thu, 12 Jan 2023 03:32:30 +0000 (16:32 +1300)
commit5a26c7b310b629f8893483cc3cce5bbfa7879115
treebd8f0e2494e38c45b2e1fb99c1dfc835fc6e0793
parent7389aad63666a2cac18cd6d7496378d7f50ef37b
Refactor DetermineSleepTime() to use milliseconds.

Since we're not using select() anymore, we don't need to bother with
struct timeval.  We can work directly in milliseconds, which the latch
API wants.

Discussion: https://postgr.es/m/CA%2BhUKG%2BZ-HpOj1JsO9eWUP%2Bar7npSVinsC_npxSy%2BjdOMsx%3DGg%40mail.gmail.com
src/backend/postmaster/postmaster.c