We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e6f02b + a598e6e commit ae337b4Copy full SHA for ae337b4
include/pages/api/getpoolstatus.inc.php
@@ -12,7 +12,7 @@
12
13
// Efficiency
14
$aShares = $statistics->getRoundShares();
15
-$aShares['valid'] > 0 ? $dEfficiency = round((100 - (100 / $aShares['valid'] * $aShares['invalid'])), 2) : $dEfficiency = 0;
+$aShares['invalid'] > 0 ? $dEfficiency = round((1 - ($aShares['invalid'] / ($aShares['valid'] + $aShares['invalid']))) * 100, 2) : $dEfficiency = 100;
16
17
// Fetch RPC data
18
if ($bitcoin->can_connect() === true){
0 commit comments