[Patch] Fix typo in pg_stat_us_to_ms() - Mailing list pgsql-hackers

From Tatsuya Kawata
Subject [Patch] Fix typo in pg_stat_us_to_ms()
Date
Msg-id CAHza6qfek15rehnA0GXMCpF2z=Gy6C+3vmcWCMVkU4JiRD8k7g@mail.gmail.com
Whole thread
Responses Re: [Patch] Fix typo in pg_stat_us_to_ms()
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: JSON_VALUE/JSON_TABLE DEFAULT expression ignores RETURNING typmod
Next
From: Henson Choi
Date:
Subject: Re: CAST(... ON DEFAULT) - WIP build on top of Error-Safe User Functions