From: Andrew Ruthven Date: Mon, 19 Nov 2007 17:46:32 +0000 (+1300) Subject: If the next recording is in less than 1 hour, display the time interval in red. X-Git-Tag: 0.5~19 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9958686a350fb85975c12745f373b22b9ec3f6c2;p=mythtv-status.git If the next recording is in less than 1 hour, display the time interval in red. --- diff --git a/bin/mythtv-status b/bin/mythtv-status index 44501ff..0c68d89 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -151,7 +151,7 @@ my @blocks = ( my $str = Delta_Format(DateCalc('now', $next_time, undef, 1), 0, '%hh Hours, %mv Minutes'); $str =~ s/\b1 (Hour|Minute)s/1 $1/; - $str =~ s/^0 Hours, //; + $str =~ s/^0 Hours, (.*)$/$warning$1$normal/; $str =~ s/ 0 Minutes//; return $str;