mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 07:28:11 +00:00
LibCore: Use Core::Stream
for ProcessStatisticsReader
This commit is contained in:
parent
e338a0656d
commit
8940f2da7f
18 changed files with 55 additions and 95 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue