Merge pull request #2266 from mwillbanks/hotfix/metrics-average-always-sums
Metrics: Calculation set to average always sums
This commit is contained in:
@@ -83,8 +83,6 @@ class MetricPoint extends Model implements HasPresenter
|
||||
{
|
||||
if ($this->metric->calc_type === Metric::CALC_SUM) {
|
||||
return round((float) $value * $this->counter, $this->metric->places);
|
||||
} elseif ($this->metric->calc_type === Metric::CALC_AVG) {
|
||||
return round((float) $value * $this->counter, $this->metric->places);
|
||||
}
|
||||
|
||||
return round((float) $value, $this->metric->places);
|
||||
|
||||
Reference in New Issue
Block a user