X-Git-Url: https://ruin.nu/git/?p=ndwebbie.git;a=blobdiff_plain;f=lib%2FNDWeb%2FScans.pm;fp=lib%2FNDWeb%2FScans.pm;h=87a43d183f4cb70d55cf9782898b0654a034f294;hp=f2661498c9d585fb638a291a9dd25372c915f2d4;hb=fe30a773e99e2ef4d560caa91e0dfc9ff72a3bdc;hpb=33a44a03fa129739264f7ccd983e38c96c11a677 diff --git a/lib/NDWeb/Scans.pm b/lib/NDWeb/Scans.pm index f266149..87a43d1 100644 --- a/lib/NDWeb/Scans.pm +++ b/lib/NDWeb/Scans.pm @@ -40,7 +40,7 @@ sub parseMilScan ($) { my $total = 0; while ($file =~ m{([^<]+)(.+?)}g) { my $ship = $1; - next if $ship eq 'Total Ships'; + next if $ship eq 'Total Visible Ships'; my $amounts = $2; my $tot_amount = 0; my $i = 0; @@ -48,7 +48,7 @@ sub parseMilScan ($) { my $fleet = $fleets[$i]; my $amount = $1; $amount =~ s/,//g; - if ($ship eq 'Total Visible Ships') { + if ($ship eq 'Total Ships') { $fleet->{amount} = $amount; } elsif ($amount > 0) { $tot_amount += $amount;