diff --git a/mozilla/webtools/graph/query.cgi b/mozilla/webtools/graph/query.cgi index 8512e9df71a..80381d66ca2 100755 --- a/mozilla/webtools/graph/query.cgi +++ b/mozilla/webtools/graph/query.cgi @@ -240,12 +240,15 @@ sub show_graph { print "\n"; } -if(!$TESTNAME) { - print_testnames($TBOX, $AUTOSCALE, $DAYS, $UNITS, $LTYPE, $POINTS); -} elsif(!$TBOX) { - print_machines($TESTNAME, $AUTOSCALE, $DAYS, $UNITS, $LTYPE, $POINTS); -} else { - show_graph(); +# main +{ + if(!$TESTNAME) { + print_testnames($TBOX, $AUTOSCALE, $DAYS, $UNITS, $LTYPE, $POINTS); + } elsif(!$TBOX) { + print_machines($TESTNAME, $AUTOSCALE, $DAYS, $UNITS, $LTYPE, $POINTS); + } else { + show_graph(); + } }