aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/AppBundle/Controller/AllDataAverageController.php18
-rw-r--r--src/AppBundle/Controller/LastWeekDataAverageController.php24
2 files changed, 15 insertions, 27 deletions
diff --git a/src/AppBundle/Controller/AllDataAverageController.php b/src/AppBundle/Controller/AllDataAverageController.php
index 87a9d7c..4434d47 100644
--- a/src/AppBundle/Controller/AllDataAverageController.php
+++ b/src/AppBundle/Controller/AllDataAverageController.php
@@ -25,26 +25,24 @@ class AllDataAverageController extends Controller
curl_close($curl);
$data = json_decode($resp, true);
-
$readings = array();
+ $results = array();
usort($data, function($a,$b){
return $a['TimeStamp'] - $b['TimeStamp'];
});
-