mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 01:37:02 +02:00
health page displays piler version
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user