LibCore: Use Core::Stream for ProcessStatisticsReader

This commit is contained in:
Tim Schumacher 2022-12-08 14:50:31 +01:00 committed by Linus Groh
commit 8940f2da7f
Notes: sideshowbarker 2024-07-17 03:30:05 +09:00
18 changed files with 55 additions and 95 deletions

View file

@ -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;