Commit 3c19afd2 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add event and opmode to node display (and time set).

parent 6c44b4a4
......@@ -1061,6 +1061,10 @@ function SHOWNODE($node_id) {
$tarballs = $row[tarballs];
$startupcmd = $row[startupcmd];
$routertype = $row[routertype];
$eventstate = $row[eventstate];
$state_timestamp = $row[state_timestamp];
$op_mode = $row[op_mode];
$op_mode_timestamp = $row[op_mode_timestamp];
if (!$def_boot_cmd_line)
$def_boot_cmd_line = "&nbsp";
......@@ -1185,6 +1189,22 @@ function SHOWNODE($node_id) {
<td class=left>$routertype</td>
if ($eventstate) {
$when = strftime("20%y-%m-%d %H:%M:%S", $state_timestamp);
echo "<tr>
<td class=left>$eventstate ($when)</td>
if ($op_mode) {
$when = strftime("20%y%m%d-%H:%M:%S", $op_mode_timestamp);
echo "<tr>
<td>Operating Mode:</td>
<td class=left>$op_mode ($when)</td>
# We want the last login for this node, but only if its *after* the
# experiment was created (or swapped in).
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment