require 'glue.pl';
my $cgi = CGI->new;
-my $switch = 9; #$cgi->param('id');
+my $switch = $cgi->param('id');
my $width = $cgi->param('width');
my $height = $cgi->param('height');
my @pids = ();
my (@x, @y1, @y2) = ();
my $last_port = -1;
my $portname = "";
-my $min_x = 1111637856.70337; #time;
-my $max_x = 1111551456; #time - 86400;
+my $min_x = time;
+my $max_x = time - 86400;
my ($min_y, $max_y, $prev_time, $prev_in, $prev_out);
my ($if,$of,$ifv,$ofv);
my $idx;
mygraph::mygraph_plot_series($graph, $x_c, $y1_c, $#totx, 255, 0, 0);
mygraph::mygraph_plot_series($graph, $x_c, $y2_c, $#totx, 0, 0, 255);
mygraph::mygraph_to_file($graph, "img/$filename");
-#mygraph::mygraph_cleanup ($graph);
+
+mygraph::mygraph_cleanup ($graph);
# my $elapsedthis = Time::HiRes::tv_interval($startthis);
# printf "$elapsedthis seconds<br/>\n";