Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2016-12-22 16:24:17 +0300
committerGitHub <noreply@github.com>2016-12-22 16:24:17 +0300
commitd133a4d69a127337c6de2b79815d209d20ce104d (patch)
treefde56eb967fc04de7bf32ba6d95acc65e7cb55ac /lib
parent9876c3f586b5b7c4d9539913202125b221b620fa (diff)
parentf96b82f050351c213d90fb2366afb24d0490e270 (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.php2
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'];
}