This commit is contained in:
James Brooks
2018-07-02 22:38:45 +01:00
parent 5de9c94d55
commit 986f6c56b2

View File

@@ -98,7 +98,7 @@ class MetricRepository
$pointKey = $dateTime->format('Y-m-d H:00');
$points = $this->repository->getPointsSinceHour($metric, $hours)->pluck('value', 'key');
for ($i = 0; $i <= $hours; $i++) {
for ($i = 0; $i < $hours; $i++) {
if (!$points->has($pointKey)) {
$points->put($pointKey, $metric->default_value);
}