Permalink
Browse files

Fixed up/down/recovering hardware count.

  • Loading branch information...
1 parent 10cf9d1 commit a29de8e52d12135fe1bbf89a066b0b99ddec99a5 SoftLayer committed Jul 8, 2010
Showing with 13 additions and 6 deletions.
  1. +13 −6 application/controllers/IndexController.php
@@ -83,12 +83,12 @@ public function indexAction()
/*
* Monitoring status
*/
- $objectMask->networkMonitorUpHardwareCount;
- $objectMask->networkMonitorRecoveringHardwareCount;
- $objectMask->networkMonitorDownHardwareCount;
- $objectMask->networkMonitorUpVirtualGuestCount;
- $objectMask->networkMonitorRecoveringVirtualGuestCount;
- $objectMask->networkMonitorDownVirtualGuestCount;
+ $objectMask->networkMonitorUpHardware;
+ $objectMask->networkMonitorRecoveringHardware;
+ $objectMask->networkMonitorDownHardware;
+ $objectMask->networkMonitorUpVirtualGuests;
+ $objectMask->networkMonitorRecoveringVirtualGuests;
+ $objectMask->networkMonitorDownVirtualGuests;
$client->setObjectMask($objectMask);
@@ -142,6 +142,13 @@ public function indexAction()
}
}
+ $account->networkMonitorUpHardwareCount = count($account->networkMonitorUpHardware);
+ $account->networkMonitorRecoveringHardwareCount = count($account->networkMonitorRecoveringHardware);
+ $account->networkMonitorDownHardwareCount = count($account->networkMonitorDownHardware);
+ $account->networkMonitorUpVirtualGuestCount = count($account->networkMonitorUpVirtualGuests);
+ $account->networkMonitorRecoveringVirtualGuestCount = count($account->networkMonitorRecoveringVirtualGuests);
+ $account->networkMonitorDownVirtualGuestCount = count($account->networkMonitorDownVirtualGuests);
+
$this->view->pageTitle = ucfirst($this->view->translate->_('Home'));
$this->view->headTitle(ucfirst($this->view->translate->_('Home')));
$this->view->account = $account;

0 comments on commit a29de8e

Please sign in to comment.