diff options
author | Patrik Kernstock <info@pkern.at> | 2017-06-09 18:35:33 +0300 |
---|---|---|
committer | Patrik Kernstock <info@pkern.at> | 2017-06-09 18:35:33 +0300 |
commit | 57c67f84faa23028067462caa864ccae6a35c05a (patch) | |
tree | 1a04367a1585e8b1a19d671ede358ebf070dc473 /lib | |
parent | 94f494981182ef70a3d53bf0b28ef734d42ba172 (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.php | 2 |
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 [ |