]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
firewalllogcountry.dat: Fix filename for piechart image
authorAlf Høgemark <alf@i100.no>
Sat, 1 Mar 2014 14:00:51 +0000 (15:00 +0100)
committerAlf Høgemark <alf@i100.no>
Sat, 1 Mar 2014 14:00:51 +0000 (15:00 +0100)
html/cgi-bin/logs.cgi/firewalllogcountry.dat

index 198e239de8a78ffb301cf766e37ca4620d506a89..af142790870b24eebcb8edc80cbce4415149f195 100644 (file)
@@ -408,16 +408,16 @@ if ($showpie != 2 && $pienumber <= 50 && $pienumber != 0) {
         $mygraph->set( dclrs => [ "$color{'color1'}" , "$color{'color2'}" , "$color{'color3'}" , "$color{'color4'}" , "$color{'color5'}" , "$color{'color6'}" , "$color{'color7'}" , "$color{'color8'}" , "$color{'color9'}" , "$color{'color10'}" ] );
         my $myimage = $mygraph->plot(\@data) or die $mygraph->error;
 
-        my @filenames = glob("/srv/web/ipfire/html/graphs/fwlog-ip*.png");
+        my @filenames = glob("/srv/web/ipfire/html/graphs/fwlog-country*.png");
         unlink(@filenames);
         my $imagerandom = rand(1000000);
-        my $imagename = "/srv/web/ipfire/html/graphs/fwlog-ip$imagerandom.png";
+        my $imagename = "/srv/web/ipfire/html/graphs/fwlog-country$imagerandom.png";
         open(FILE,">$imagename");
         print FILE $myimage->png;
         close(FILE);
         #####################################################
         print "<div style='text-align:center;'>";
-        print "<img src='/graphs/fwlog-ip$imagerandom.png'>";
+        print "<img src='/graphs/fwlog-country$imagerandom.png'>";
         print "</div>";
 }