]> git.mxchange.org Git - friendica.git/commitdiff
Suppress warning on load check
authorMichael <heluecht@pirati.ca>
Wed, 19 Oct 2022 04:49:57 +0000 (04:49 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 19 Oct 2022 04:49:57 +0000 (04:49 +0000)
src/Core/System.php

index 8a8f273a8db7fdf2c9ef5402f22a4e19899f20fa..b2da78f1b3509d9a2ff5f16d147d1efd42c45e3e 100644 (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');