From 21f5090f8bcb2258b13c458edde43a6e3f2104b6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 31 Oct 2011 17:07:46 +0100 Subject: [PATCH] Bugfix of previous commit --- bprun | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bprun b/bprun index b64a08d..94adb78 100755 --- a/bprun +++ b/bprun @@ -161,7 +161,7 @@ sub redraw_slot($) { my $mach = $s->{'Host'}; my $stat = $s->{'Status'} // "?"; my $jid = $s->{'Job'} // ""; - my $jname = $queue->job_name($jid); + my $jname = ($jid eq "" ? "" : $queue->job_name($jid)); my $text = sprintf("%-20s %-10s %s", $mach, $stat, $jname); $C->addnstr($s->{'Row'}, 0, $text, $C->getmaxx); $C->clrtoeol; -- 2.39.2