mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:17:35 +00: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:
parent
a345a1f4a1
commit
a1e133cc6b
12 changed files with 79 additions and 83 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue