Merge pull request #1057 from headzoo/div_by_zero
[FiX] Division by zero warning on $dNetworkHashrate
This commit is contained in:
commit
3bba0b572c
@ -812,7 +812,7 @@ class Statistics extends Base {
|
|||||||
$dNetworkHashrate = $this->bitcoin->getnetworkhashps();
|
$dNetworkHashrate = $this->bitcoin->getnetworkhashps();
|
||||||
$dDifficulty = $this->bitcoin->getdifficulty();
|
$dDifficulty = $this->bitcoin->getdifficulty();
|
||||||
} else {
|
} else {
|
||||||
$dNetworkHashrate = 0;
|
$dNetworkHashrate = 1;
|
||||||
$dDifficulty = 1;
|
$dDifficulty = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user