From 0a4d3b62dea80c253ca2d9611d865a62976a72aa Mon Sep 17 00:00:00 2001
From: =?utf8?q?Bar=C4=B1=C5=9F=20Metin?= <Talip-Baris.Metin@sophia.inria.fr>
Date: Thu, 23 Jul 2009 12:08:30 +0000
Subject: [PATCH] now that most of the nodes have run_level set by
 monitor-runlevelagent, let's display this as the state. If run_level is stale
 boot_state will be displayed with an * appended.

---
 planetlab/nodes/nodes.php | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/planetlab/nodes/nodes.php b/planetlab/nodes/nodes.php
index fd96f51..2451563 100644
--- a/planetlab/nodes/nodes.php
+++ b/planetlab/nodes/nodes.php
@@ -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));
-- 
2.47.0