Commit 866180c3 authored by Mac Newbold's avatar Mac Newbold
Browse files

Add sort-by-reserve-time for emulab-ops expts, for Mike.

parent 67a08472
...@@ -715,8 +715,10 @@ function SHOWNODES($pid, $eid) { ...@@ -715,8 +715,10 @@ function SHOWNODES($pid, $eid) {
"Node Name</a>"; "Node Name</a>";
$vnamefield="vname"; $vnamefield="vname";
if (!strcmp($pid, $TBOPSPID)) { if (!strcmp($pid, $TBOPSPID)) {
$nodename="Reserve Time"; $nodename="<a href=\"$SCRIPT_NAME?pid=$pid&eid=$eid&altnodesort=2\">".
"Reserve Time</a>";
$vnamefield="rsrvtime"; $vnamefield="rsrvtime";
if (!isset($altnodesort)) { $altnodesort = 2; }
} }
if (mysql_num_rows($reserved_result)) { if (mysql_num_rows($reserved_result)) {
...@@ -742,6 +744,8 @@ function SHOWNODES($pid, $eid) { ...@@ -742,6 +744,8 @@ function SHOWNODES($pid, $eid) {
$sort = "type,priority"; $sort = "type,priority";
if ($altnodesort==1) { if ($altnodesort==1) {
$sort = "vname"; $sort = "vname";
} elseif ($altnodesort==2) {
$sort = "rsrvtime";
} # Can add other alt sorts here too } # Can add other alt sorts here too
......
Markdown is supported
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