From: Andrew Ruthven Date: Fri, 16 Nov 2007 00:10:05 +0000 (+1300) Subject: Stop the encoders being reported as Unknown if they are really Idle. X-Git-Tag: 0.4~15 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e62f6260129393f485ebac8aeec2afeebd8a2384;p=mythtv-status.git Stop the encoders being reported as Unknown if they are really Idle. --- diff --git a/bin/mythtv-status b/bin/mythtv-status index 0c5864d..112e27e 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -122,7 +122,8 @@ for my $block (@blocks) { my $value = $key eq 'NODE_TEXT' ? wrap(' ', ' ', $item->string_value()) : $item->getAttribute($key); $value =~ s/\s+$//; - $value ||= 'Unknown'; + $value = 'Unknown' + if $value eq ''; $skip = 1 if defined $block->{'filter'}{$key} &&