mirror of https://github.com/citusdata/citus.git
declaration fix
parent
6ea9d00971
commit
2b55ecc167
|
@ -263,11 +263,10 @@ AttributeMetricsIfApplicable()
|
||||||
if (strcmp(attributeToTenant, "") != 0)
|
if (strcmp(attributeToTenant, "") != 0)
|
||||||
{
|
{
|
||||||
clock_t end = { 0 };
|
clock_t end = { 0 };
|
||||||
double cpu_time_used = 0;
|
|
||||||
|
|
||||||
end = clock();
|
end = clock();
|
||||||
time_t queryTime = time(0);
|
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)
|
if (MultiTenantMonitoringLogLevel != CITUS_LOG_LEVEL_OFF)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue