CC-4661: Listener Statistics
- bug fix and removing unnecessary code
This commit is contained in:
parent
8e69e50eea
commit
9712e64a69
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue