Metrics should include the current hour. Fixes #1113

This commit is contained in:
James Brooks
2015-11-15 16:13:20 +00:00
parent 73820735f5
commit cc3f08260e

View File

@@ -58,7 +58,7 @@ class MetricRepository
$pointKey = $dateTime->format('H:00');
for ($i = 0; $i <= $hours; $i++) {
$points[$pointKey] = $this->repository->getPointsByHour($metric, $i + 1);
$points[$pointKey] = $this->repository->getPointsByHour($metric, $i);
$pointKey = $dateTime->sub(new DateInterval('PT1H'))->format('H:00');
}