diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-08-30 19:20:42 +0200 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-09-03 12:17:45 +0200 |
commit | 0580dbb202cca6afddd9c77b2b4c4283bc0a2319 (patch) | |
tree | c8a6928d4725f32a642532ad59db2eb498791add /Process.c | |
parent | c0c2bb98a23b649c55e5d8a55395073fdaa8d6fa (diff) |
NetBSD: color process state P as running
On NetBSD state 'R' means runnable not running.
Improve the color identifier name accordingly.
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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]; |