Handle cases when gipfl/linux-health returns false instead of memory usage.

This commit is contained in:
Ibrahim Khalifa 2022-06-02 16:22:46 +02:00 committed by Thomas Gelf
parent 75b73604a8
commit 4b229c122c
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class BackgroundDaemonDetails extends BaseHtmlElement
$pid $pid
], ],
Html::tag('pre', $process->command), Html::tag('pre', $process->command),
Format::bytes($process->memory->rss) $process->memory === false ? 'n/a' : Format::bytes($process->memory->rss)
])); ]));
} }
$this->add($table); $this->add($table);