mirror of
https://github.com/postgres/postgres.git
synced 2026-10-23 13:29:09 +03:00
Fix typo in pg_stat_us_to_ms()
The function converts microseconds to milliseconds, but the parameter
name used "ms".
Thinko in ac8d53dae5.
Author: Tatsuya Kawata <kawatatatsuya0913@gmail.com>
Discussion: https://postgr.es/m/CAHza6qfek15rehnA0GXMCpF2z=Gy6C+3vmcWCMVkU4JiRD8k7g@mail.gmail.com
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user