mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-10 03:04:36 +03:00
Use String_eq wrapper instead of raw strcmp
This commit is contained in:

committed by
BenBE

parent
04cf590967
commit
69efa94f9f
@ -434,7 +434,7 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
|
||||
|
||||
if (proc->percent_cpu > 0.1) {
|
||||
// system idle process should own all CPU time left regardless of CPU count
|
||||
if ( strcmp("idle", kproc->kp_comm) == 0 ) {
|
||||
if (String_eq("idle", kproc->kp_comm)) {
|
||||
isIdleProcess = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user