From 1343e8591932001dba8211171d0dec49fb2817f2 Mon Sep 17 00:00:00 2001 From: Hamid Akhtar Date: Sun, 19 Feb 2023 01:29:26 +0500 Subject: [PATCH] Fixing typos introduced by the previous commit --- pg_stat_monitor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pg_stat_monitor.c b/pg_stat_monitor.c index dc1948d..b346442 100644 --- a/pg_stat_monitor.c +++ b/pg_stat_monitor.c @@ -758,7 +758,7 @@ pgsm_ExecutorEnd(QueryDesc *queryDesc) queryDesc->totaltime->total * 1000.0, /* exec_total_time */ queryDesc->estate->es_processed, /* rows */ &queryDesc->totaltime->bufusage, /* bufusage */ -#if PG_VERSION_NU– >= 130000 +#if PG_VERSION_NUM >= 130000 &queryDesc->totaltime->walusage, /* walusage */ #else NULL, @@ -1419,8 +1419,7 @@ pgsm_update_entry(pgsmEntry *entry, e->counters.time.max_time = exec_total_time; } - /* Get the histogram timing in microseconds */ - index = get_histogram_bucket(exec_total_time * 1000); + index = get_histogram_bucket(exec_total_time); e->counters.resp_calls[index]++; }