Merge pull request #12029 from annando/warning

Suppress warning on load check
This commit is contained in:
Tobias Diekershoff 2022-10-19 07:51:24 +02:00 committed by GitHub
commit d8fe8b1e8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -442,7 +442,7 @@ class System
*/
public static function getLoadAvg(): array
{
if (is_readable('/proc/loadavg')) {
if (@is_readable('/proc/loadavg')) {
$content = @file_get_contents('/proc/loadavg');
if (empty($content)) {
$content = shell_exec('cat /proc/loadavg');