]> 91.132.146.200 Git - insipid.git/commitdiff
code cleanup
authorBanana <banana@starscream.de>
Thu, 16 Feb 2012 09:25:38 +0000 (10:25 +0100)
committerBanana <banana@starscream.de>
Thu, 16 Feb 2012 09:25:38 +0000 (10:25 +0100)
lib/Insipid/Stats.pm

index be048e11872d1744c22db2253608e83abce2c585..be6ba95ba34de0c1c3a95d5a9a1a16bb7918074c 100644 (file)
@@ -63,13 +63,11 @@ sub groupByDomain {
 
        if($sth->rows ne 0) {
                while(@row = $sth->fetchrow_array()) {
-                       #print $row['url']."<br />";
                        my $uri = URI->new($row['url']);
-                       #print $uri->host."<br />";
+
                        if($domains{$uri->host}) {
                                $domains{$uri->host}++;
-                       }
-                       else {
+                       } else {
                                $domains{$uri->host} = 1;
                        }
                }