Stop reusing variables to make custom config easier

feature/node-rewrite
Sven Slootweg 12 years ago
parent 41ba80e310
commit a5759329be

@ -106,7 +106,9 @@ class Container extends CPHPDatabaseRecordClass
$sTcpSock = $this->sGuaranteedRam * 3; $sTcpSock = $this->sGuaranteedRam * 3;
$sFLock = (int)($this->sGuaranteedRam * 0.6); $sFLock = (int)($this->sGuaranteedRam * 0.6);
$sFLockLimit = (int)($sFLock * 1.1); $sFLockLimit = (int)($sFLock * 1.1);
$sTcpBuf = (int)($this->sGuaranteedRam * 20000); $sTcpSndBuf = (int)($this->sGuaranteedRam * 20000);
$sTcpRcvBuf = (int)($this->sGuaranteedRam * 20000);
$sOtherBuf = (int)($this->sGuaranteedRam * 20000);
$sTcpLimit = (int)($sTcpBuf * 2); $sTcpLimit = (int)($sTcpBuf * 2);
$sDgramBuf = (int)($sTcpBuf / 40); $sDgramBuf = (int)($sTcpBuf / 40);
$sNumFile = $this->sGuaranteedRam * 32; $sNumFile = $this->sGuaranteedRam * 32;
@ -135,9 +137,9 @@ class Container extends CPHPDatabaseRecordClass
--numflock {$sFLock}:{$sFLockLimit} --numflock {$sFLock}:{$sFLockLimit}
--numpty 32:32 --numpty 32:32
--numsiginfo 512:512 --numsiginfo 512:512
--tcpsndbuf {$sTcpBuf}:{$sTcpBufLimit} --tcpsndbuf {$sTcpSndBuf}:{$sTcpSndBufLimit}
--tcprcvbuf {$sTcpBuf}:{$sTcpBufLimit} --tcprcvbuf {$sTcpRcvBuf}:{$sTcpRcvBufLimit}
--othersockbuf {$sTcpBuf}:{$sTcpBufLimit} --othersockbuf {$sOtherBuf}:{$sOtherBufLimit}
--dgramrcvbuf {$sDgramBuf}:{$sDgramBuf} --dgramrcvbuf {$sDgramBuf}:{$sDgramBuf}
--numothersock {$sTcpSock}:{$sTcpSock} --numothersock {$sTcpSock}:{$sTcpSock}
--numfile {$sNumFile}:{$sNumFile} --numfile {$sNumFile}:{$sNumFile}

Loading…
Cancel
Save