From 9444237a1243404b80bb58877a2015421ec95e99 Mon Sep 17 00:00:00 2001 From: linggao Date: Thu, 26 Jun 2008 19:35:32 +0000 Subject: [PATCH] moinor fix git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1791 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/monitoring/xcatmon.pm | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/xCAT-server/lib/xcat/monitoring/xcatmon.pm b/xCAT-server/lib/xcat/monitoring/xcatmon.pm index c3c7b85a5..b44574039 100644 --- a/xCAT-server/lib/xcat/monitoring/xcatmon.pm +++ b/xCAT-server/lib/xcat/monitoring/xcatmon.pm @@ -242,14 +242,15 @@ sub getMonNodesStatus { if ($iphash{$sv}) { $monnodes=$hierachy->{$_}; } - } + - foreach(@$monnodes) { - my $node=$_->[0]; - my $status=$_->[2]; - if ($status eq $::STATUS_ACTIVE) { push(@active_nodes, $node);} - elsif ($status eq $::STATUS_INACTIVE) { push(@inactive_nodes, $node);} - else { push(@unknown_nodes, $node);} + foreach(@$monnodes) { + my $node=$_->[0]; + my $status=$_->[2]; + if ($status eq $::STATUS_ACTIVE) { push(@active_nodes, $node);} + elsif ($status eq $::STATUS_INACTIVE) { push(@inactive_nodes, $node);} + else { push(@unknown_nodes, $node);} + } } $status{$::STATUS_ACTIVE}=\@active_nodes;