[FIX] Division by 0
This commit is contained in:
parent
61d52657f1
commit
9c101e5ca0
@ -45,7 +45,6 @@ if ($iTotalRoundShares > 0) {
|
||||
|
||||
// Round progress
|
||||
$iEstShares = $statistics->getEstimatedShares($dDifficulty);
|
||||
$dEstPercent = round(100 / $iEstShares * $aRoundShares['valid'], 2);
|
||||
if ($iEstShares > 0 && $aRoundShares['valid'] > 0) {
|
||||
$dEstPercent = round(100 / $iEstShares * $aRoundShares['valid'], 2);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user