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();
}