* Return empty when no calculator.

This commit is contained in:
qixinzhi
2024-05-27 15:41:44 +08:00
committed by caoyanyi
parent 628bcc3377
commit 2c65838be1
+1
View File
@@ -756,6 +756,7 @@ class metricModel extends model
if(!$metric) return false;
$calculator = $this->getCalculator($metric->scope, $metric->purpose, $metric->code);
if(!$calculator) return array();
/* 因为是单个度量项的计算,所以需要优先查看是否支持可用的性能优化,如果有的话,使用性能优化方式计算。*/
/* Because this is a single metric calculation, it is important to first look to see if any performance optimizations are supported and, if so, use them. */