mirror of
https://github.com/friendica/friendica
synced 2025-05-14 05:44:11 +02:00
Good news, everyone - again somce notices removed
This commit is contained in:
parent
f9177e827e
commit
821429fdf1
5 changed files with 22 additions and 17 deletions
|
@ -1074,7 +1074,11 @@ class App
|
|||
|
||||
$meminfo = [];
|
||||
foreach ($memdata as $line) {
|
||||
list($key, $val) = explode(':', $line);
|
||||
$data = explode(':', $line);
|
||||
if (count($data) != 2) {
|
||||
continue;
|
||||
}
|
||||
list($key, $val) = $data;
|
||||
$meminfo[$key] = (int) trim(str_replace('kB', '', $val));
|
||||
$meminfo[$key] = (int) ($meminfo[$key] / 1024);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue