Display the system load and free disk space in the nav bar
This commit is contained in:
parent
dbba80fcbf
commit
6a65bef736
|
@ -64,6 +64,9 @@ class AppController extends Controller {
|
||||||
} else {
|
} else {
|
||||||
$this->set('daemonStatus', ('Stopped'));
|
$this->set('daemonStatus', ('Stopped'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->set('systemLoad', $this->AppModel->getSystemLoad());
|
||||||
|
$this->set('diskSpace', $this->AppModel->getDiskSpace());
|
||||||
}
|
}
|
||||||
|
|
||||||
function extractNamedParams($mandatory, $optional = array()) {
|
function extractNamedParams($mandatory, $optional = array()) {
|
||||||
|
|
|
@ -45,6 +45,8 @@ $cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="navbar navbar-default" role="navigation">
|
<div class="navbar navbar-default" role="navigation">
|
||||||
|
<p class="navbar-text navbar-right">Used Event Storage: <?php echo $diskSpace; ?>%</p>
|
||||||
|
<p class="navbar-text navbar-right">CPU Load: <?php echo $systemLoad; ?></p>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div id="loadingDiv"><img src="/img/loading.gif" alt="Loading..." /></div>
|
<div id="loadingDiv"><img src="/img/loading.gif" alt="Loading..." /></div>
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
|
|
Loading…
Reference in New Issue