health page displays piler version

This commit is contained in:
SJ
2015-03-18 15:22:53 +01:00
parent 78728c2c6e
commit 925b108457
4 changed files with 14 additions and 0 deletions

View File

@ -50,6 +50,9 @@ class ControllerHealthWorker extends Controller {
list ($this->data['uptime'], $this->data['cpuload']) = $this->model_health_health->uptime();
exec(PILER_BINARY . " -v", $a);
$this->data['piler_version'] = $a[0];
$x = exec(CPU_USAGE_COMMAND);
$this->data['cpuinfo'] = 100 - (int)$x;