diff --git a/webapp/controller/HashRateController.class.php b/webapp/controller/HashRateController.class.php index d7f1f6b0..4b069497 100644 --- a/webapp/controller/HashRateController.class.php +++ b/webapp/controller/HashRateController.class.php @@ -54,11 +54,10 @@ class HashRateController extends BaseAuthedController $state = 2; } $myHashRate = HashRate::getMyHashRate( $currentPeriod['id']); - $currentCompute = HashRate::getMyHashRate(); $computeR = explode("|",mt\Parameter::getVal('economy_account_compute_R',0)); $k = 0; for ($i=0;$i= $computeR[$i]){ + if ($myHashRate >= $computeR[$i]){ $k = $i; } }