Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

innreport failure when archive is false #247

Open
Julien-Elie opened this issue Oct 5, 2022 · 0 comments
Open

innreport failure when archive is false #247

Julien-Elie opened this issue Oct 5, 2022 · 0 comments
Labels
bug Something isn't working C: utilities Related to utilities P: medium Medium priority
Milestone

Comments

@Julien-Elie
Copy link
Contributor

When archive is false in innreport.conf, an illegal division by zero is reported:

    $image->string(
        gdSmallFont(), $xmax / 2, $y_in,
        (sprintf "Avg: %5.1f $unit", $s_in / $t_in * $factor), $black
    );

$t_in equals 0 when there isn't any date in the first field of innreport.db:

news-notice.html|Jan 5 03:00:02 -- Jan 6 03:00:02|407991|31972|69.0 MB|632353|44546|539.2 MB

The expected name is something like news-notice.2022.01.02-04.15.02.html but that is not always true, whence a wrong computation here:

                my ($year) = $k =~ m/^news-notice\.
                       (\d+)\.\d+\.\d+-\d+.\d+.\d+$HTML_EXTENSION/x;
                $dates{$start_sec} = $end_sec;
@Julien-Elie Julien-Elie added bug Something isn't working C: utilities Related to utilities P: medium Medium priority labels Oct 5, 2022
@Julien-Elie Julien-Elie added this to the 2.7.x milestone Oct 5, 2022
@Julien-Elie Julien-Elie modified the milestones: 2.7.x, 2.7.2 Mar 19, 2023
@Julien-Elie Julien-Elie modified the milestones: 2.7.2, 2.7.3 Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working C: utilities Related to utilities P: medium Medium priority
Development

No branches or pull requests

1 participant