From 0580dbb202cca6afddd9c77b2b4c4283bc0a2319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 30 Aug 2021 19:20:42 +0200 Subject: NetBSD: color process state P as running On NetBSD state 'R' means runnable not running. Improve the color identifier name accordingly. --- Process.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Process.c') diff --git a/Process.c b/Process.c index b28f8c1d..924580d0 100644 --- a/Process.c +++ b/Process.c @@ -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]; -- cgit v1.2.3