Skip to content

Commit

Permalink
Add display stimate time of next round.
Browse files Browse the repository at this point in the history
  • Loading branch information
emfox committed Dec 15, 2013
1 parent 52bc982 commit ea7ec0b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion templates/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,14 @@ function mnu_btn($link, $title, $preg = false)

?>
</ul>
<div class="pull-right" style="color: #fff; padding-top: 11px; font-size: 11px;">Blockcount: <?=number_format($derp["blocks"]);?> - Difficulty: <? echo $derp['difficulty'];?> - version <?=$derp['version']?> with <?=$derp["connections"]?> p2p nodes</div>
<div class="pull-right" style="color: #fff; padding-top: 11px; font-size: 11px;">
Blockcount: <?=number_format($derp["blocks"]);?>
- Difficulty: <? echo $derp['difficulty'];?>
- Estimate time of next round: <?$varb = $derp["blocks"];
$vart =1375479729+(time()-1375479729)*(ceil(($varb+1)/4000)*4000-100000)/($varb-100000);
echo date('Y-m-d H:i:s',$vart);
//block 100000 generated at unix time 1375479729 ?>
</div>
</div>

</div>
Expand Down

0 comments on commit ea7ec0b

Please sign in to comment.