CC-4661: Listener Statistics

- bug fix and removing unnecessary code
This commit is contained in:
James 2012-11-06 14:52:35 -05:00
parent 8e69e50eea
commit 9712e64a69
2 changed files with 6 additions and 3 deletions

View File

@ -46,9 +46,6 @@ class ListenerstatController extends Zend_Controller_Action
'his_time_end' => $end->format("H:i")
));
$allMPs = Application_Model_ListenerStat::getAllMPNames();
$this->view->mps = $allMPs;
$this->view->date_form = $form;
}

View File

@ -63,6 +63,12 @@ function plot(datasets){
if (this.checked)
{
data.push(datasets[this.id]);
if (firstTimestamp.getTime() > datasets[this.id].data[0][0].getTime()) {
firstTimestamp = datasets[this.id].data[0][0];
}
if (lastTimestamp.getTime() < datasets[this.id].data[datasets[this.id].data.length-1][0].getTime()) {
lastTimestamp = datasets[this.id].data[datasets[this.id].data.length-1][0];
}
}
else
{