From dfe5227ad5b90d6a91784bb4f31b242692d93686 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 6 Jan 2013 12:20:09 +0100 Subject: [PATCH] bex prun: Let NOPING entries be displayed in a different color from FAILED --- lib/bin/bex-prun | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/bin/bex-prun b/lib/bin/bex-prun index 63be479..685c8be 100755 --- a/lib/bin/bex-prun +++ b/lib/bin/bex-prun @@ -151,6 +151,7 @@ sub new($) { init_pair(2, COLOR_YELLOW, COLOR_RED); init_pair(3, COLOR_YELLOW, COLOR_BLACK); init_pair(4, COLOR_RED, COLOR_BLACK); + init_pair(5, COLOR_BLUE, COLOR_BLACK); $nrows = $C->getmaxy - 2; if ($BEX::Config::max_parallel_jobs > $nrows) { @@ -293,7 +294,7 @@ sub redraw_slot($) { $C->addstr(sprintf("%3dD %3dW", $jcnt->{'done'}, $jcnt->{'ready'})); if ($stat eq 'DONE') { if (defined $host_last_fail_stat{$mach}) { - $C->bkgdset(COLOR_PAIR(4)); + $C->bkgdset(($host_last_fail_stat{$mach} eq 'NOPING') ? COLOR_PAIR(5) : COLOR_PAIR(4)); $C->addstr(sprintf(" %-8s %s", $host_last_fail_stat{$mach}, $queue->job_name($host_last_fail_job{$mach}))); } } else { -- 2.39.2