Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Fix incorrect error count
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMinemeet committed Jun 10, 2024
1 parent bbede11 commit 5af4a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LinkSpector/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ static int Main(string[] args)

int totalResults = results.Count;
int okResults = results.Count(r => r.StatusCode == 200);
int errorResults = results.Count(r => r.StatusCode != 200);
int errorResults = results.Count(r => r.StatusCode != 200 && r.StatusCode > 0 || r.IsQuirky);

Console.WriteLine($"\ud83d\udd0e {totalResults} Total (in {stopwatch.ElapsedMilliseconds}ms) - \u2705 {okResults} OK, \u26d4 {errorResults} Error(s)");

Expand Down

0 comments on commit 5af4a30

Please sign in to comment.