X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Fnetwork.cgi;h=1843d796ba14d4c910441187781f30cafc9c1464;hp=eee47c64a0f7ad1e3ab0d74125810908e32b7671;hb=350b52c5c9368951ff2a9139817b42d0aec03ad7;hpb=aee3027d875826e18b3eb198f9ad0c3228bfbb01 diff --git a/html/cgi-bin/network.cgi b/html/cgi-bin/network.cgi index eee47c64a..1843d796b 100644 --- a/html/cgi-bin/network.cgi +++ b/html/cgi-bin/network.cgi @@ -17,6 +17,7 @@ use CGI::Carp 'fatalsToBrowser'; require '/var/ipfire/general-functions.pl'; require "${General::swroot}/lang.pl"; require "${General::swroot}/header.pl"; +require "${General::swroot}/graphs.pl"; my %cgiparams=(); my %pppsettings=(); @@ -53,6 +54,21 @@ if ($cgiparams[1] =~ /red/) { foreach my $graphname (@graphs) { + if ($graphname == "lq" ) + { + &Graphs::updatelqgraph("day"); + &Graphs::updatelqgraph("week"); + &Graphs::updatelqgraph("month"); + &Graphs::updatelqgraph("year"); + } + else + { + &Graphs::updateifgraph ($graphname, "day"); + &Graphs::updateifgraph ($graphname, "week"); + &Graphs::updateifgraph ($graphname, "month"); + &Graphs::updateifgraph ($graphname, "year"); + } + &Header::openbox('100%', 'center', "$graphname $Lang::tr{'graph'}"); if (-e "$Header::graphdir/${graphname}-day.png") { my $ftime = localtime((stat("$Header::graphdir/${graphname}-day.png"))[9]);