From 8495fa3fc358d991ffeb525fcec11241d17553c2 Mon Sep 17 00:00:00 2001 From: Frederick Behrends Date: Fri, 20 Dec 2013 06:51:41 +0100 Subject: [PATCH] [FIX] calculation --- public/include/classes/statistics.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/include/classes/statistics.class.php b/public/include/classes/statistics.class.php index bacc5438..f10dd719 100644 --- a/public/include/classes/statistics.class.php +++ b/public/include/classes/statistics.class.php @@ -835,7 +835,6 @@ class Statistics extends Base { return round($dDifficulty * $this->config['cointarget'] / $this->getNetworkExpectedTimePerBlock(), 8); } - /** * Get Number of blocks until next difficulty change * @return blocks int blocks until difficulty change @@ -849,7 +848,7 @@ class Statistics extends Base { $iBlockcount = 1; } - return $this->memcache->setCache(__FUNCTION__, $iBlockcount % $this->config['coindiffchangetarget']); + return $this->memcache->setCache(__FUNCTION__, $this->config['coindiffchangetarget'] - ($iBlockcount % $this->config['coindiffchangetarget'])); } /**