From 610ac90036737a00f9d54620cde3e5845b7fc18f Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 29 May 2009 11:15:19 +0000 Subject: [PATCH] fix so that it now still calls processing of usage instead of exiting git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3455 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/nodestat.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/nodestat.pm b/xCAT-server/lib/xcat/plugins/nodestat.pm index e5ddccb1f..6839ba228 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -75,7 +75,6 @@ sub getstat { sub preprocess_request { my $req = shift; - return [$req]; #For now, do not distribute, nodestat seems to lose accuracy and slow down distributed my $cb = shift; my %sn; if ($req->{_xcatdest}) { return [$req]; } #exit if preprocessed @@ -83,6 +82,7 @@ sub preprocess_request my $service = "xcat"; my @requests; if ($nodes){ + return [$req]; #For now, do not distribute, nodestat seems to lose accuracy and slow down distributed # find service nodes for requested nodes # build an individual request for each service node my $sn = xCAT::Utils->get_ServiceNode($nodes, $service, "MN");