diff options
author | Björn Schießle <bjoern@schiessle.org> | 2016-12-22 16:24:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-22 16:24:17 +0300 |
commit | d133a4d69a127337c6de2b79815d209d20ce104d (patch) | |
tree | fde56eb967fc04de7bf32ba6d95acc65e7cb55ac /lib | |
parent | 9876c3f586b5b7c4d9539913202125b221b620fa (diff) | |
parent | f96b82f050351c213d90fb2366afb24d0490e270 (diff) |
Merge pull request #71 from nextcloud/issue-68-proc-info-not-readable
Don't throw an error when /proc/meminfo is not readable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/SystemStatistics.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/SystemStatistics.php b/lib/SystemStatistics.php index 02c3c48..dd483a5 100644 --- a/lib/SystemStatistics.php +++ b/lib/SystemStatistics.php @@ -68,7 +68,7 @@ class SystemStatistics { * @return array with the two values 'mem_free' and 'mem_total' */ protected function getMemoryUsage() { - $memoryUsage = file_get_contents('/proc/meminfo'); + $memoryUsage = @file_get_contents('/proc/meminfo'); if ($memoryUsage === false) { return ['mem_free' => 'N/A', 'mem_total' => 'N/A']; } |