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

Remove inaccurate details in compact view #1088

Merged
merged 1 commit into from
Jun 1, 2023
Merged

Remove inaccurate details in compact view #1088

merged 1 commit into from
Jun 1, 2023

Conversation

mre
Copy link
Member

@mre mre commented Jun 1, 2023

The error details in the compact report are computed incorrectly.
This leads to weird output, as shown in the screenshot.

image

Since the information is misleading, and we show a list of errors anyway, the safest way to fix this bug is to get rid of the detailed stats.

let mut errors = HashMap::new();
errors.insert(
"HTTP",
stats.errors - stats.redirects - stats.timeouts - stats.unknown,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the reason for the bug. Redirects, timeouts, and unknown link statuses aren't counted as errors, but we still substract them from the total number of errors to calculate the HTTP errors. We might also just remove the HTTP errors in the output, but the counts of all individual "errors" would not sum up to the total error count and be even more confusing to the user. Safer to remove that than show inaccurate information.

@mre mre merged commit 3c3051a into master Jun 1, 2023
6 checks passed
@mre mre deleted the detailed-view branch June 1, 2023 14:55
@mre mre added maintenance bug Something isn't working labels Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant