minor fix

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11951 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2012-03-23 02:16:10 +00:00
parent e53d9d1394
commit 28354c529c

View File

@ -46,9 +46,9 @@ sub dodiscover {
my $sysctl;
open ($sysctl,"<","/proc/sys/net/core/rmem_max");
my $maxrcvbuf=<$sysctl>;
my $rcvbuf = $socket->sockopt(SO_RCVBUF);
my $rcvbuf = $args{'socket'}->sockopt(SO_RCVBUF);
if ($maxrcvbuf > $rcvbuf) {
$socket->sockopt(SO_RCVBUF,$maxrcvbuf/2);
$args{'socket'}->sockopt(SO_RCVBUF,$maxrcvbuf/2);
}
}
}