mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibCore: Use Core::Stream for ProcessStatisticsReader
This commit is contained in:
committed by
Linus Groh
parent
e338a0656d
commit
8940f2da7f
@@ -21,7 +21,7 @@ void RunningProcessesModel::update()
|
||||
m_processes.clear();
|
||||
|
||||
auto all_processes = Core::ProcessStatisticsReader::get_all();
|
||||
if (all_processes.has_value()) {
|
||||
if (!all_processes.is_error()) {
|
||||
for (auto& it : all_processes.value().processes) {
|
||||
Process process;
|
||||
process.pid = it.pid;
|
||||
|
||||
Reference in New Issue
Block a user