From: Barış Metin Date: Thu, 23 Jul 2009 12:08:30 +0000 (+0000) Subject: now that most of the nodes have run_level set by monitor-runlevelagent, let's display... X-Git-Tag: PLEWWW-4.3-25~5 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0a4d3b62dea80c253ca2d9611d865a62976a72aa;p=plewww.git 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. --- 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));