1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 20:10:55 +01:00

Fix a bad method call in cache startup.

This commit is contained in:
epriestley 2015-04-08 11:32:30 -07:00
parent 2a3783cd2c
commit 2f0e2544d3

View file

@ -49,7 +49,7 @@ final class PhabricatorDataCacheSpec extends PhabricatorCacheSpec {
if (ini_get('apc.enabled')) { if (ini_get('apc.enabled')) {
$this->setIsEnabled(true); $this->setIsEnabled(true);
$this->getAPCCommonSpec(); $this->initAPCCommonSpec();
} else { } else {
$this->setIsEnabled(false); $this->setIsEnabled(false);
$this->raiseEnableAPCIssue(); $this->raiseEnableAPCIssue();
@ -72,7 +72,7 @@ final class PhabricatorDataCacheSpec extends PhabricatorCacheSpec {
} }
} }
private function getAPCCommonSpec() { private function initAPCCommonSpec() {
$mem = apc_sma_info(); $mem = apc_sma_info();
$this->setTotalMemory($mem['num_seg'] * $mem['seg_size']); $this->setTotalMemory($mem['num_seg'] * $mem['seg_size']);