Use String_eq wrapper instead of raw strcmp

This commit is contained in:
Christian Göttsche
2021-01-27 15:12:06 +01:00
committed by BenBE
parent 04cf590967
commit 69efa94f9f
4 changed files with 4 additions and 4 deletions

View File

@ -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;
}
}