From c38e92ac9d9acd4a208a72e2ae5dce6570590f95 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Thu, 11 Sep 2014 23:59:26 +1200 Subject: [PATCH] Fix modifying next recording if it was "0 Days, 30 Hours". It was being modified to "0 Day, 3" rather than "30 Hours". --- ChangeLog | 5 +++++ bin/mythtv-status | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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'}) { -- 2.30.2