Skip to content

Commit

Permalink
Fix superfluous metric point
Browse files Browse the repository at this point in the history
  • Loading branch information
JordyvanDortmont committed Mar 27, 2018
1 parent 0ebaa39 commit 7e00b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Repositories/Metric/MetricRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function listPointsLastHour(Metric $metric)
$pointKey = $dateTime->format('Y-m-d H:i');
$points = $this->repository->getPointsSinceMinutes($metric, 60)->pluck('value', 'key')->take(60);

for ($i = 0; $i <= 60; $i++) {
for ($i = 0; $i < 60; $i++) {
if (!$points->has($pointKey)) {
$points->put($pointKey, $metric->default_value);
}
Expand Down

0 comments on commit 7e00b6f

Please sign in to comment.