diff --git a/mozilla/webtools/graph/query.cgi b/mozilla/webtools/graph/query.cgi index 4daac2b4c94..fd083dea01e 100755 --- a/mozilla/webtools/graph/query.cgi +++ b/mozilla/webtools/graph/query.cgi @@ -14,7 +14,9 @@ my $SIZE = lc($req->param('size')); my $DAYS = lc($req->param('days')); my $LTYPE = lc($req->param('ltype')); my $POINTS = lc($req->param('points')); -# +my $AVG = lc($req->param('avg')); + + # Testing only: # #$TESTNAME = "testname"; @@ -43,12 +45,14 @@ sub make_filenames_list { # Print out a list of testnames in db directory sub print_testnames { - my ($tbox, $autoscale, $days, $units, $ltype, $points) = @_; + my ($tbox, $autoscale, $days, $units, $ltype, $points, $avg) = @_; # HTTP header print "Content-type: text/html\n\n\n"; + print "
| Select one of the following tests: |
| \n";
@@ -58,7 +62,7 @@ sub print_testnames {
my $machines_string = join(" ", @machines);
foreach (@machines) {
- print " |
| \n"; - print " | \n"; + + # Average (on|off) + print "\n"; + print "\n"; + print "Average:"; + if($AVG) { + print "(on|"; + print "off"; + print ")\n"; + } else { + print "("; + print "on"; + print "|off)\n"; + } + print "\n"; + print " | \n"; + + print "