mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 22:45:07 +00:00
SystemMonitor: Uninitialized struct member in ProcessModel, found by Coverity
This is really a nop, as the cpu_percent is computed later. Zero the value just to keep things sane.
This commit is contained in:
parent
c1fd41c38c
commit
f7b1591a5c
1 changed files with 1 additions and 0 deletions
|
@ -394,6 +394,7 @@ void ProcessModel::update()
|
|||
state.sid = it.value.sid;
|
||||
state.times_scheduled = thread.times_scheduled;
|
||||
state.cpu = thread.cpu;
|
||||
state.cpu_percent = 0;
|
||||
state.priority = thread.priority;
|
||||
state.effective_priority = thread.effective_priority;
|
||||
state.state = thread.state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue