From 001349ef8176cacd281229d68fa3fef404c0ed49 Mon Sep 17 00:00:00 2001 From: TatsuyaKawata Date: Thu, 2 Jul 2026 22:21:03 +0900 Subject: [PATCH v1] Fix typo in pg_stat_us_to_ms() The function converts microseconds to milliseconds, but the parameter was named val_ms. Rename it to val_us. --- src/backend/utils/adt/pgstatfuncs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/utils/adt/pgstatfuncs.c b/src/backend/utils/adt/pgstatfuncs.c index b5f27b0463c..565d0e70768 100644 --- a/src/backend/utils/adt/pgstatfuncs.c +++ b/src/backend/utils/adt/pgstatfuncs.c @@ -1455,9 +1455,9 @@ pgstat_get_io_time_index(IOOp io_op) } static inline double -pg_stat_us_to_ms(PgStat_Counter val_ms) +pg_stat_us_to_ms(PgStat_Counter val_us) { - return (double) val_ms / 1000.0; + return (double) val_us / 1000.0; } /* -- 2.34.1