Merge pull request #1057 from headzoo/div_by_zero

[FiX] Division by zero warning on $dNetworkHashrate
This commit is contained in:
Sebastian Grewe 2013-12-21 02:57:07 -08:00
commit 3bba0b572c

View File

@ -812,7 +812,7 @@ class Statistics extends Base {
$dNetworkHashrate = $this->bitcoin->getnetworkhashps();
$dDifficulty = $this->bitcoin->getdifficulty();
} else {
$dNetworkHashrate = 0;
$dNetworkHashrate = 1;
$dDifficulty = 1;
}