NetBSD: color process state P as running

On NetBSD state 'R' means runnable not running.

Improve the color identifier name accordingly.
This commit is contained in:
Christian Göttsche
2021-08-30 19:20:42 +02:00
committed by BenBE
parent c0c2bb98a2
commit 0580dbb202
3 changed files with 12 additions and 8 deletions

View File

@ -864,8 +864,12 @@ void Process_writeField(const Process* this, RichString* str, ProcessField field
case STATE:
xSnprintf(buffer, n, "%c ", this->state);
switch (this->state) {
#ifdef HTOP_NETBSD
case 'P':
#else
case 'R':
attr = CRT_colors[PROCESS_R_STATE];
#endif
attr = CRT_colors[PROCESS_RUN_STATE];
break;
case 'D':
attr = CRT_colors[PROCESS_D_STATE];