[FiX] Division by zero warning on $dNetworkHashrate

When not connected to a wallet, the value of $dnetworkHashrate is set to 0, which causes a division by zero error.
This commit is contained in:
headz 2013-12-20 19:56:27 -05:00
parent cda57db81f
commit 549fb9b6cb

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;
}