]> git.etc.gen.nz Git - mythtv-status.git/commitdiff
Have Next Recording sum up the days including all bigger values
authorAndrew Ruthven <andrew@etc.gen.nz>
Tue, 2 Aug 2016 12:04:55 +0000 (00:04 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Tue, 2 Aug 2016 12:10:07 +0000 (00:10 +1200)
This fixes the issue where if the Next Recording is more than a week
and 1 day in the future, we'll report the wrong value for the Next
Recording.

ChangeLog
bin/mythtv-status

index 2eff48b442826ea7d9df546bac54a11b8b0f6b23..42914849a75670a0d86b53e54e02db311f5f7fd8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-08-02     Andrew Ruthven
+       Fix a long standing bug where if the Next Recording is a week
+       and one day in the future, the Next Recording only shows
+       the hours.
+
 2016-08-02     Andrew Ruthven
        Somewhere between Date::Manip v6.0 and v6.32 the behaviour for
        DateCalc has changed, so that now a DateCalc will keep on
index 122c4dc1f2b72a733d10f9c2041151ac9c3134fe..45829b7667baddcb905a6de8f5e813be551eec7c 100755 (executable)
@@ -471,7 +471,7 @@ my @blocks = (
        # print out the days and hours.
        my $str;
        if ($seconds > 24 * 3600) {
-         $str = Delta_Format($delta, 0, '%dd Days, %hv Hours');
+         $str = Delta_Format($delta, 0, '%dh Days, %hv Hours');
        } else {
          $str = Delta_Format($delta, 0, '%hh Hours, %mv Minutes');
        }