[FIX] enable Caching for ExpectedNextDifficulty and NetworkExpectedTimePerBlock

This commit is contained in:
Frederick Behrends 2013-12-20 03:38:53 +01:00
parent 28b71cbc2f
commit 4ec364f036

View File

@ -816,7 +816,7 @@ class Statistics extends Base {
$dDifficulty = 1;
}
return pow(2, 32) * $dDifficulty / $dNetworkHashrate;
return $this->memcache->setCache(__FUNCTION__, pow(2, 32) * $dDifficulty / $dNetworkHashrate);
}
/**
@ -832,7 +832,7 @@ class Statistics extends Base {
$dDifficulty = 1;
}
return round($dDifficulty * $this->config['cointarget'] / $this->getNetworkExpectedTimePerBlock(), 8);
return $this->memcache->setCache(__FUNCTION__, round($dDifficulty * $this->config['cointarget'] / $this->getNetworkExpectedTimePerBlock(), 8));
}
/**