From: Andrew Ruthven Date: Thu, 11 Sep 2014 11:59:26 +0000 (+1200) Subject: Fix modifying next recording if it was "0 Days, 30 Hours". X-Git-Tag: 1.0.0~75 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c38e92ac9d9acd4a208a72e2ae5dce6570590f95;p=mythtv-status.git Fix modifying next recording if it was "0 Days, 30 Hours". It was being modified to "0 Day, 3" rather than "30 Hours". --- diff --git a/ChangeLog b/ChangeLog index 3695b12..27d8747 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-09-11 Andrew Ruthven + Spotted that if the next recording is in 30 hours, then it is + displayed as "0 Days, 3". Correct it so it'll be displayed + as "30 Hours". + 2013-10-28 Andrew Ruthven Guard against zero total disk space, this affected Werner Mahr. diff --git a/bin/mythtv-status b/bin/mythtv-status index 0313574..5802413 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -477,7 +477,7 @@ my @blocks = ( } $str =~ s/\b1 (Day|Hour|Minute)s/1 $1/g; - $str =~ s/(, )?0 Hours(, )?//; + $str =~ s/\b0 (Days|Hours)(, )?//; $str =~ s/, 0 Minutes$//; if ($seconds <= $c->{'recording_in_warn'}) {