kopia lustrzana https://github.com/friendica/friendica
get the load average in a portable manner
rodzic
dbbbef368f
commit
f664208157
|
@ -445,7 +445,7 @@ class System
|
|||
if (@is_readable('/proc/loadavg')) {
|
||||
$content = @file_get_contents('/proc/loadavg');
|
||||
if (empty($content)) {
|
||||
$content = shell_exec('cat /proc/loadavg');
|
||||
$content = shell_exec('uptime | sed "s/.*e: //" | sed "s/,//"');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue