Skip to content

Commit

Permalink
[REMOVED] Baseline from roundstats
Browse files Browse the repository at this point in the history
  • Loading branch information
MPOS123 committed Mar 21, 2014
1 parent 055e425 commit d72b4f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/include/classes/roundstats.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function getDetailsForBlockHeight($iHeight=0) {
SELECT
b.id, height, blockhash, amount, confirmations, difficulty, FROM_UNIXTIME(time) as time, shares,
IF(a.is_anonymous, 'anonymous', a.username) AS finder,
ROUND((difficulty * 65535) / POW(2, (" . $this->config['difficulty'] . " -16)), 0) AS estshares,
ROUND(difficulty * POW(2, 32 - " . $this->coin->getTargetBits() . "), 0) AS estshares,
(time - (SELECT time FROM $this->tableBlocks WHERE height < ? ORDER BY height DESC LIMIT 1)) AS round_time
FROM " . $this->block->getTableName() . " as b
LEFT JOIN " . $this->user->getTableName() . " AS a ON b.account_id = a.id
Expand Down Expand Up @@ -288,3 +288,4 @@ public function getUserRoundTransHeight($iHeight=0, $iUser) {
$roundstats->setStatistics($statistics);
$roundstats->setBlock($block);
$roundstats->setTransaction($transaction);
$roundstats->setCoin($coin);

0 comments on commit d72b4f6

Please sign in to comment.