2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-24 13:21:12 +00:00

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:
sakolish
2007-12-04 15:39:28 +00:00
parent f7f1f7dee8
commit 17bfa44f3c

View File

@@ -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;