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();
|
||||
$dDifficulty = $this->bitcoin->getdifficulty();
|
||||
} else {
|
||||
$dNetworkHashrate = 0;
|
||||
$dNetworkHashrate = 1;
|
||||
$dDifficulty = 1;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user