mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibCore: Make ProcessStatisticsReader return results in a Vector
The HashMap API was overkill and made using this less ergonomic than it should be.
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 17:30:38 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a1e133cc6bf
@@ -130,8 +130,8 @@ private:
|
||||
return false;
|
||||
|
||||
for (auto& it : all_processes.value()) {
|
||||
for (auto& jt : it.value.threads) {
|
||||
if (it.value.pid == 0)
|
||||
for (auto& jt : it.threads) {
|
||||
if (it.pid == 0)
|
||||
idle += jt.ticks_user + jt.ticks_kernel;
|
||||
else
|
||||
busy += jt.ticks_user + jt.ticks_kernel;
|
||||
|
||||
Reference in New Issue
Block a user