Commit 652753c5 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Remove emulab-ops experiments from all of the stats. Remove testbed

from idle and swapped (but leave in active for now, until we move some
people out).

Sorry, but emulab-ops and testbed are hardwired strings.
parent 1200bdc9
<?php <?php
# #
# EMULAB-COPYRIGHT # EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group. # Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved. # All rights reserved.
# #
require("defs.php3"); require("defs.php3");
...@@ -13,8 +13,9 @@ PAGEHEADER("Home"); ...@@ -13,8 +13,9 @@ PAGEHEADER("Home");
# Get some stats about current experiments # Get some stats about current experiments
$query_result = DBQueryFatal("select count(*) from experiments where ". $query_result =
"state='active'"); DBQueryFatal("select count(*) from experiments where ".
"state='active' and pid!='emulab-ops'");
if (mysql_num_rows($query_result) != 1) { if (mysql_num_rows($query_result) != 1) {
$active_expts = "ERR"; $active_expts = "ERR";
} else { } else {
...@@ -23,7 +24,7 @@ if (mysql_num_rows($query_result) != 1) { ...@@ -23,7 +24,7 @@ if (mysql_num_rows($query_result) != 1) {
} }
$query_result = DBQueryFatal("select count(*) from experiments where ". $query_result = DBQueryFatal("select count(*) from experiments where ".
"state='swapped'"); "state='swapped' and pid!='emulab-ops' and pid!='testbed'");
if (mysql_num_rows($query_result) != 1) { if (mysql_num_rows($query_result) != 1) {
$swapped_expts = "ERR"; $swapped_expts = "ERR";
} else { } else {
...@@ -32,7 +33,7 @@ if (mysql_num_rows($query_result) != 1) { ...@@ -32,7 +33,7 @@ if (mysql_num_rows($query_result) != 1) {
} }
$query_result = DBQueryFatal("select count(*) from experiments where ". $query_result = DBQueryFatal("select count(*) from experiments where ".
"swap_requests > 0"); "swap_requests > 0 and pid!='emulab-ops' and pid!='testbed'");
if (mysql_num_rows($query_result) != 1) { if (mysql_num_rows($query_result) != 1) {
$idle_expts = "ERR"; $idle_expts = "ERR";
} else { } else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment