From 839495ec9bcdf471909b028a54d00d2b283fe200 Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Thu, 13 Dec 2001 06:38:41 +0000 Subject: [PATCH] pass in units too git-svn-id: svn://10.0.0.236/trunk@110420 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/graph/query.cgi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/webtools/graph/query.cgi b/mozilla/webtools/graph/query.cgi index 39586a62d83..268965310e2 100755 --- a/mozilla/webtools/graph/query.cgi +++ b/mozilla/webtools/graph/query.cgi @@ -40,7 +40,7 @@ sub make_filenames_list { # Print out a list of testnames in db directory sub print_testnames { - my ($tbox, $autoscale, $days) = @_; + my ($tbox, $autoscale, $days, $units) = @_; # HTTP header print "Content-type: text/html\n\n\n"; @@ -55,7 +55,7 @@ sub print_testnames { my $machines_string = join(" ", @machines); foreach (@machines) { - print "
  • $_\n"; + print "
  • $_\n"; } print ""; @@ -64,7 +64,7 @@ sub print_testnames { # Print out a list of machines in db/ directory, with links. sub print_machines { - my ($testname, $autoscale, $days) = @_; + my ($testname, $autoscale, $days, $units) = @_; # HTTP header print "Content-type: text/html\n\n\n"; @@ -79,7 +79,7 @@ sub print_machines { my $machines_string = join(" ", @machines); foreach (@machines) { - print "
  • $_\n"; + print "
  • $_\n"; } print ""; @@ -156,9 +156,9 @@ sub show_graph { } if(!$TESTNAME) { - print_testnames($TBOX, $AUTOSCALE, $DAYS); + print_testnames($TBOX, $AUTOSCALE, $DAYS, $UNITS); } elsif(!$TBOX) { - print_machines($TESTNAME, $AUTOSCALE, $DAYS); + print_machines($TESTNAME, $AUTOSCALE, $DAYS, $UNITS); } else { show_graph(); }