From: Wolfram Schneider Date: Fri, 23 Apr 2010 15:20:24 +0000 (+0200) Subject: normalize recordSyntaxes and domains X-Git-Tag: CPAN-v1.02~97 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=42955602ebc7f77d22617ff6eae1b0dbbcddd394;p=irspy-moved-to-github.git normalize recordSyntaxes and domains --- diff --git a/lib/ZOOM/IRSpy/Stats.pm b/lib/ZOOM/IRSpy/Stats.pm index 641f47f..6a59c6b 100644 --- a/lib/ZOOM/IRSpy/Stats.pm +++ b/lib/ZOOM/IRSpy/Stats.pm @@ -113,7 +113,7 @@ sub _gather_stats { # Record syntax support by database foreach my $node ($xc->findnodes('e:recordInfo/e:recordSyntax/@name')) { - $this->{recordSyntaxes}->{$node->findvalue(".")}++; + $this->{recordSyntaxes}->{lc($node->findvalue("."))}++; } # Explain support @@ -135,7 +135,7 @@ sub _gather_stats { # Top Domains my $host = $xc->findvalue('e:serverInfo/e:host'); $host =~ s/.*\.//; - $this->{domains}->{$host}++; + $this->{domains}->{lc($host)}++; # Implementation foreach my $node ($xc->findnodes('i:status/i:serverImplementationName/@value')) {