From 04167c103bc268e7eee053520d9633b86adc47c1 Mon Sep 17 00:00:00 2001 From: drigato Date: Mon, 23 Nov 2015 11:37:08 -0500 Subject: [PATCH] Fix parameter name in api/bandwidth-usage --- airtime_mvc/application/controllers/ApiController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/airtime_mvc/application/controllers/ApiController.php b/airtime_mvc/application/controllers/ApiController.php index 40e73923d..6496b428b 100644 --- a/airtime_mvc/application/controllers/ApiController.php +++ b/airtime_mvc/application/controllers/ApiController.php @@ -145,11 +145,9 @@ class ApiController extends Zend_Controller_Action * Update station bandwidth usage based on icecast log data */ public function bandwidthUsageAction() { - // FIXME: this function is using placeholder names - $bandwidthUsage = json_decode($this->getRequest()->getParam("bandwidth_usage")); + $bandwidthUsage = json_decode($this->getRequest()->getParam("bandwidth_data")); $usageBytes = 0; foreach ($bandwidthUsage as $entry) { - Logging::info($entry); // TODO: store the IP address for future use $ts = strtotime($entry->timestamp); if ($ts > Application_Model_Preference::getBandwidthLimitUpdateTimer()) {