mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:08:12 +00:00
CProcessStatisticsReader: Be consistent about terminology from the kernel down
This commit is contained in:
parent
9724d540b6
commit
a9d1a86e6e
7 changed files with 74 additions and 48 deletions
|
@ -40,9 +40,9 @@ void WSCPUMonitor::get_cpu_usage(unsigned& busy, unsigned& idle)
|
|||
|
||||
for (auto& it : all_processes) {
|
||||
if (it.value.pid == 0)
|
||||
idle += it.value.nsched;
|
||||
idle += it.value.times_scheduled;
|
||||
else
|
||||
busy += it.value.nsched;
|
||||
busy += it.value.times_scheduled;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue