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:
authorPatrik Kernstock <info@pkern.at>2017-06-09 18:35:33 +0300
committerPatrik Kernstock <info@pkern.at>2017-06-09 18:35:33 +0300
commit57c67f84faa23028067462caa864ccae6a35c05a (patch)
tree1a04367a1585e8b1a19d671ede358ebf070dc473 /lib
parent94f494981182ef70a3d53bf0b28ef734d42ba172 (diff)
Show warning when failed to retrieve CPU values
Signed-off-by: Patrik Kernstock <info@pkern.at>
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 e312ba3..30f50f1 100644
--- a/lib/SystemStatistics.php
+++ b/lib/SystemStatistics.php
@@ -108,7 +108,7 @@ class SystemStatistics {
if (!(is_array($loadavg) && count($loadavg) === 3)) {
// either no array or too few array keys.
// returning back zeroes to prevent any errors on JS side.
- $loadavg = [0, 0, 0];
+ $loadavg = 'N/A';
}
return [