From 6a65bef736373162254a7336f9852f8ab2172f66 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Wed, 11 Sep 2013 09:23:55 -0400 Subject: [PATCH] Display the system load and free disk space in the nav bar --- web/app/Controller/AppController.php | 3 +++ web/app/View/Layouts/default.ctp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/web/app/Controller/AppController.php b/web/app/Controller/AppController.php index 7c640d79c..5aa8bd233 100644 --- a/web/app/Controller/AppController.php +++ b/web/app/Controller/AppController.php @@ -64,6 +64,9 @@ class AppController extends Controller { } else { $this->set('daemonStatus', ('Stopped')); } + + $this->set('systemLoad', $this->AppModel->getSystemLoad()); + $this->set('diskSpace', $this->AppModel->getDiskSpace()); } function extractNamedParams($mandatory, $optional = array()) { diff --git a/web/app/View/Layouts/default.ctp b/web/app/View/Layouts/default.ctp index c0a7c2660..54e631a1c 100644 --- a/web/app/View/Layouts/default.ctp +++ b/web/app/View/Layouts/default.ctp @@ -45,6 +45,8 @@ $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework