diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-12-08 14:50:31 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-10 11:49:24 +0000 |
commit | 8940f2da7fec4b4e375777c861e65ff04465f255 (patch) | |
tree | d1ac58cae77af94ea378a93fb818e8787faed542 /Userland/Demos/CatDog/CatDog.cpp | |
parent | e338a0656dd8e99e9ed64abf98d15e219adb9755 (diff) | |
download | serenity-8940f2da7fec4b4e375777c861e65ff04465f255.zip |
LibCore: Use `Core::Stream` for `ProcessStatisticsReader`
Diffstat (limited to 'Userland/Demos/CatDog/CatDog.cpp')
-rw-r--r-- | Userland/Demos/CatDog/CatDog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Demos/CatDog/CatDog.cpp b/Userland/Demos/CatDog/CatDog.cpp index 66d6e16e31..5d217726e0 100644 --- a/Userland/Demos/CatDog/CatDog.cpp +++ b/Userland/Demos/CatDog/CatDog.cpp @@ -12,8 +12,8 @@ void CatDog::timer_event(Core::TimerEvent&) { - auto maybe_proc_info = Core::ProcessStatisticsReader::get_all(m_proc_all); - if (maybe_proc_info.has_value()) { + auto maybe_proc_info = Core::ProcessStatisticsReader::get_all(*m_proc_all); + if (!maybe_proc_info.is_error()) { auto proc_info = maybe_proc_info.release_value(); auto maybe_paint_program = proc_info.processes.first_matching([](auto& process) { |