From 2b55ecc167ef0a7dd5a2968a989b57b1cc5ca2f8 Mon Sep 17 00:00:00 2001 From: Halil Ozan Akgul Date: Thu, 9 Mar 2023 12:22:04 +0300 Subject: [PATCH] declaration fix --- src/backend/distributed/utils/attribute.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/distributed/utils/attribute.c b/src/backend/distributed/utils/attribute.c index bc7a3f7cd..0563ea6ed 100644 --- a/src/backend/distributed/utils/attribute.c +++ b/src/backend/distributed/utils/attribute.c @@ -263,11 +263,10 @@ AttributeMetricsIfApplicable() if (strcmp(attributeToTenant, "") != 0) { clock_t end = { 0 }; - double cpu_time_used = 0; end = clock(); time_t queryTime = time(0); - cpu_time_used = ((double) (end - attributeToTenantStart)) / CLOCKS_PER_SEC; + double cpu_time_used = ((double) (end - attributeToTenantStart)) / CLOCKS_PER_SEC; if (MultiTenantMonitoringLogLevel != CITUS_LOG_LEVEL_OFF) {