Added check for "maxp" in site.tab - Line #84
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f7f1f7dee8
commit
17bfa44f3c
@ -78,6 +78,16 @@ sub process_command {
|
||||
my $callback = $request->{callback};
|
||||
my $start;
|
||||
|
||||
#######################################
|
||||
# Get max processes to fork
|
||||
#######################################
|
||||
my $sitetab = xCAT::Table->new('site');
|
||||
if ( defined( $sitetab )) {
|
||||
my ($ent) = $sitetab->getAttribs({'key'=>'syspmaxp'},'value');
|
||||
if ( defined($ent) ) {
|
||||
$maxp = $ent->{value};
|
||||
}
|
||||
}
|
||||
if ( exists( $request->{verbose} )) {
|
||||
$start = Time::HiRes::gettimeofday();
|
||||
}
|
||||
@ -638,3 +648,4 @@ sub process_request {
|
||||
|
||||
1;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user