Format code
parent
122a30c82b
commit
2af9ae7a4a
|
@ -1362,7 +1362,8 @@ pgsm_update_entry(pgsmEntry * entry,
|
|||
int plan_text_len = plan_info ? plan_info->plan_len : 0;
|
||||
|
||||
/* Start collecting data for next bucket and reset all counters and timestamps */
|
||||
if (reset) {
|
||||
if (reset)
|
||||
{
|
||||
memset(&entry->counters, 0, sizeof(Counters));
|
||||
entry->stats_since = GetCurrentTimestamp();
|
||||
entry->minmax_stats_since = entry->stats_since;
|
||||
|
@ -2050,7 +2051,7 @@ IsBucketValid(uint64 bucketid)
|
|||
|
||||
TimestampDifference(pgsm->bucket_start_time[bucketid], current_tz, &secs, µsecs);
|
||||
|
||||
if (secs > ((int64)pgsm_bucket_time * pgsm_max_buckets))
|
||||
if (secs > ((int64) pgsm_bucket_time * pgsm_max_buckets))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
@ -2071,7 +2072,8 @@ pg_stat_monitor_internal(FunctionCallInfo fcinfo,
|
|||
pgsmSharedState *pgsm;
|
||||
|
||||
int expected_columns;
|
||||
switch (api_version) {
|
||||
switch (api_version)
|
||||
{
|
||||
case PGSM_V1_0:
|
||||
expected_columns = PG_STAT_MONITOR_COLS_V1_0;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue