diff --git a/app/Models/MetricPoint.php b/app/Models/MetricPoint.php index 9e5cdc49..34125a2f 100644 --- a/app/Models/MetricPoint.php +++ b/app/Models/MetricPoint.php @@ -81,22 +81,6 @@ class MetricPoint extends Model implements HasPresenter return $this->belongsTo(Metric::class); } - /** - * Override the value attribute. - * - * @param mixed $value - * - * @return float - */ - public function getActiveValueAttribute($value) - { - if ($this->metric->calc_type === Metric::CALC_SUM) { - return round((float) $value * $this->counter, $this->metric->places); - } - - return round((float) $value, $this->metric->places); - } - /** * Round the created at value into intervals of 30 seconds. *