Commit df8cd0da authored by Leigh B Stoller's avatar Leigh B Stoller

Couple of minor bug fixes.

parent 42c6e214
......@@ -50,8 +50,8 @@ echo "<b>Show: <a class='static' href='showexpstats.php3'>
Experiment Stats</a>";
if ($isadmin) {
echo "<a class='static' href='showsumstats.php3'>, Summary Stats</a>";
echo "<a class='static' href='shownodehistory.php3'>, Node History</a>\n";
echo "<a class='static' href='showvlantaghistory.php'>, VLan History</a>\n";
echo ", <a class='static' href='shownodehistory.php3'>Node History</a>";
echo ", <a class='static' href='showvlantaghistory.php'>VLan History</a>\n";
}
echo "</b><br>\n";
......
......@@ -117,7 +117,7 @@ else {
echo "<a href='showvlantaghistory.php?$opts&when=current'>".
"Current</a>, ";
}
if ($when == "Epoch") {
if ($when == "epoch") {
echo "Epoch";
}
else {
......@@ -219,12 +219,18 @@ if (mysql_num_rows($query_result)) {
$pid = $row{"pid"};
$eid = $row{"eid"};
$alloc = $row{"allocated"};
$free = $row{"released"};
$id = $row{"history_id"};
$id = 0;
$slice = "--";
if (!$free)
if (isset($row{"released"})) {
$free = $row{"released"};
}
else {
$free = "&nbsp";
}
if (isset($row{"history_id"})) {
$id = $row{"history_id"};
}
$experiment = Experiment::Lookup($exptidx);
$experiment_stats = ExperimentStats::Lookup($exptidx);
......
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