From ca1fa16eb719add22f5a4986f7f0a26661fc788e Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Mon, 4 Mar 2024 18:59:41 +0800 Subject: [PATCH] Fix Value.h --- src/strategy/Value.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/strategy/Value.h b/src/strategy/Value.h index 25f61b59..9ab4b89a 100644 --- a/src/strategy/Value.h +++ b/src/strategy/Value.h @@ -54,19 +54,19 @@ class CalculatedValue : public UntypedValue, public Value T Get() override { if (checkInterval < 2) { - PerformanceMonitorOperation* pmo = sPerformanceMonitor->start(PERF_MON_VALUE, this->getName(), this->context ? &this->context->performanceStack : nullptr); + // PerformanceMonitorOperation* pmo = sPerformanceMonitor->start(PERF_MON_VALUE, this->getName(), this->context ? &this->context->performanceStack : nullptr); value = Calculate(); - if (pmo) - pmo->finish(); + // if (pmo) + // pmo->finish(); } else { time_t now = getMSTime(); if (!lastCheckTime || now - lastCheckTime >= checkInterval) { lastCheckTime = now; - PerformanceMonitorOperation* pmo = sPerformanceMonitor->start(PERF_MON_VALUE, this->getName(), this->context ? &this->context->performanceStack : nullptr); + // PerformanceMonitorOperation* pmo = sPerformanceMonitor->start(PERF_MON_VALUE, this->getName(), this->context ? &this->context->performanceStack : nullptr); value = Calculate(); - if (pmo) - pmo->finish(); + // if (pmo) + // pmo->finish(); } } return value;