Fix generation of metric point array

This commit is contained in:
James Brooks
2015-05-22 15:35:39 +01:00
parent e4ef64d014
commit 03bcf20001

View File

@@ -2,8 +2,8 @@
<ul class="list-group metrics">
@foreach($metrics as $metric)
<?php
$points = range(1, 11);
foreach ($points as $hour) {
$points = [];
foreach (range(1, 11) as $hour) {
$points[$hour] = $metric->getValues($hour);
}
$points = array_reverse($points);