From 9958686a350fb85975c12745f373b22b9ec3f6c2 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Tue, 20 Nov 2007 06:46:32 +1300 Subject: [PATCH] If the next recording is in less than 1 hour, display the time interval in red. --- bin/mythtv-status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2