[Patch] Fix typo in pg_stat_us_to_ms()

Started by Tatsuya Kawata23 days ago2 messageshackers
Jump to latest
#1Tatsuya Kawata
kawatatatsuya0913@gmail.com

Hi,

While reading pgstatfuncs.c, I noticed a small inconsistency in
pg_stat_us_to_ms().

The function converts microseconds to milliseconds, but the parameter
is named val_ms, which suggests the opposite direction.

Attached is a trivial patch renaming the parameter to val_us.

Regards,
Tatsuya Kawata

Attachments:

v1-0001-Fix-typo-in-pg_stat_us_to_ms.patchapplication/octet-stream; name=v1-0001-Fix-typo-in-pg_stat_us_to_ms.patchDownload+2-3
#2Michael Paquier
michael@paquier.xyz
In reply to: Tatsuya Kawata (#1)
Re: [Patch] Fix typo in pg_stat_us_to_ms()

On Thu, Jul 02, 2026 at 10:36:01PM +0900, Tatsuya Kawata wrote:

While reading pgstatfuncs.c, I noticed a small inconsistency in
pg_stat_us_to_ms().

The function converts microseconds to milliseconds, but the parameter
is named val_ms, which suggests the opposite direction.

Attached is a trivial patch renaming the parameter to val_us.

Aha. Fun. Will fix, thanks.
--
Michael