mirror of
https://github.com/ShaYmez/ezservermonitor-web.git
synced 2026-06-01 13:44:11 -04:00
CPU : changes on retrieving CPU information
Load Average and CPU : fix on recovery the number of CPU cores Last login : the datas are retrieved differently
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
require 'Utils/Misc.class.php';
|
||||
|
||||
if (!($load_tmp = shell_exec('cat /proc/loadavg | awk \'{print $1","$2","$3}\'')))
|
||||
{
|
||||
@@ -7,7 +8,7 @@ if (!($load_tmp = shell_exec('cat /proc/loadavg | awk \'{print $1","$2","$3}\'')
|
||||
else
|
||||
{
|
||||
// Number of cores
|
||||
$cores = (int)shell_exec('grep -c ^processor /proc/cpuinfo');
|
||||
$cores = Misc::getCpuCoresNumber();
|
||||
|
||||
$load_exp = explode(',', $load_tmp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user