now that most of the nodes have run_level set by monitor-runlevelagent, let's display...
authorBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Thu, 23 Jul 2009 12:08:30 +0000 (12:08 +0000)
committerBarış Metin <Talip-Baris.Metin@sophia.inria.fr>
Thu, 23 Jul 2009 12:08:30 +0000 (12:08 +0000)
run_level is stale boot_state will be displayed with an * appended.

planetlab/nodes/nodes.php

index fd96f51..2451563 100644 (file)
@@ -184,7 +184,11 @@ foreach ($nodes as $node) {
   $peers->cell ($table,$peer_id);
   $table->cell (topdomain($hostname));
   $table->cell (l_site_t($site_id,$login_base));
-  $table->cell ($node['boot_state']);
+  if ($node['run_level']) {
+      $table->cell($node['run_level']);
+  } else {
+      $table->cell ($node['boot_state'] . '*');
+  }
   $table->cell (l_node_t($node_id,$hostname));
   $table->cell ($node_type);
   $table->cell (l_interface_t($interface_id,$ip),array('only-if'=> !$peer_id));