Hi Erland,

This morning I did some more debugging the problem with the latest
TrackStat 2.4

I think the subroutine 'sub getRecentTime()' in 'TopRatedRecent' causes
the "doesn't give a true value" error when I try to use TrackStat with
Squeezecenter 7.2.

The subroutine 'sub getRecentTime()' looks like this:
sub getRecentTime() {
        my $days = $prefs->get("recent_number_of_days");
        if(!defined($days)) {
                $days = 30;
        }
        return time() - 24*3600*$days;
}

When I replace the line 'return time() - 24*3600*$days;'
with
'return 0;'
I get no errors!

So somehow the line 'return time() - 24*3600*$days;' gives trouble.

Do you or anyone else have any idea how this can relate to the
difference between Squeezecenter 7.1.1 and 7.2?

Thanks Jeroen


-- 
boklof
------------------------------------------------------------------------
boklof's Profile: http://forums.slimdevices.com/member.php?userid=18757
View this thread: http://forums.slimdevices.com/showthread.php?t=52278

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to