diff --git a/html/ops/index.php b/html/ops/index.php index 7b8b90f780..ee4cba3acd 100644 --- a/html/ops/index.php +++ b/html/ops/index.php @@ -75,9 +75,8 @@ echo "
  • Manage applications
  • Manage application versions
  • Send mass email to a selected set of users
  • -
  • Forum repair
  • -
  • Repair a validator problem
  • Email user with misconfigured host
  • +
  • FLOP count statistics
  • Cancel workunits
  • diff --git a/html/ops/job_times.php b/html/ops/job_times.php index 550c252152..0801e16a65 100644 --- a/html/ops/job_times.php +++ b/html/ops/job_times.php @@ -136,6 +136,11 @@ function analyze($appid, $platformid, $nresults) { } } + if (!$n) { + echo "No done results for that app"; + exit; + } + ksort($hist); show_stats($hist); echo "
    \n"; @@ -161,6 +166,10 @@ function show_form() { if ($_GET['submit']=='OK') { set_time_limit(0); $appid = $_GET['appid']; + if (!$appid) { + echo "Must supply an appid"; + exit; + } $platformid = $_GET['platformid']; $quantum = $_GET['quantum']; $nresults = $_GET['nresults'];