summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-12-08 14:50:31 +0100
committerLinus Groh <mail@linusgroh.de>2022-12-10 11:49:24 +0000
commit8940f2da7fec4b4e375777c861e65ff04465f255 (patch)
treed1ac58cae77af94ea378a93fb818e8787faed542 /Userland/Libraries/LibGUI
parente338a0656dd8e99e9ed64abf98d15e219adb9755 (diff)
downloadserenity-8940f2da7fec4b4e375777c861e65ff04465f255.zip
LibCore: Use `Core::Stream` for `ProcessStatisticsReader`
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r--Userland/Libraries/LibGUI/RunningProcessesModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/RunningProcessesModel.cpp b/Userland/Libraries/LibGUI/RunningProcessesModel.cpp
index f4bc37124f..d0af1001a0 100644
--- a/Userland/Libraries/LibGUI/RunningProcessesModel.cpp
+++ b/Userland/Libraries/LibGUI/RunningProcessesModel.cpp
@@ -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;