mirror of https://github.com/xzeldon/htop.git
Make kernel thread display for COMM/EXE columns less visible and more consistent
This commit is contained in:
parent
45cb99d870
commit
27b36dab1a
|
@ -668,8 +668,8 @@ static void LinuxProcess_writeField(const Process* this, RichString* str, Proces
|
||||||
/* 15 being (TASK_COMM_LEN - 1) */
|
/* 15 being (TASK_COMM_LEN - 1) */
|
||||||
xSnprintf(buffer, n, "%-15.15s ", lp->procComm);
|
xSnprintf(buffer, n, "%-15.15s ", lp->procComm);
|
||||||
} else {
|
} else {
|
||||||
attr = CRT_colors[FAILED_READ];
|
attr = CRT_colors[PROCESS_SHADOW];
|
||||||
xSnprintf(buffer, n, "%-15.15s ", Process_isKernelThread(lp) ? kthreadID : "?");
|
xSnprintf(buffer, n, "%-15.15s ", Process_isKernelThread(lp) ? kthreadID : "no perm");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -678,8 +678,8 @@ static void LinuxProcess_writeField(const Process* this, RichString* str, Proces
|
||||||
attr = CRT_colors[Process_isUserlandThread(this) ? PROCESS_THREAD_BASENAME : PROCESS_BASENAME];
|
attr = CRT_colors[Process_isUserlandThread(this) ? PROCESS_THREAD_BASENAME : PROCESS_BASENAME];
|
||||||
xSnprintf(buffer, n, "%-15.15s ", lp->procExe + lp->procExeBasenameOffset);
|
xSnprintf(buffer, n, "%-15.15s ", lp->procExe + lp->procExeBasenameOffset);
|
||||||
} else {
|
} else {
|
||||||
attr = CRT_colors[FAILED_READ];
|
attr = CRT_colors[PROCESS_SHADOW];
|
||||||
xSnprintf(buffer, n, "%-15.15s ", Process_isKernelThread(lp) ? kthreadID : "?");
|
xSnprintf(buffer, n, "%-15.15s ", Process_isKernelThread(lp) ? kthreadID : "no perm");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue