Skip to content

Commit

Permalink
try check lower floor #816
Browse files Browse the repository at this point in the history
  • Loading branch information
Quake4 committed Feb 21, 2021
1 parent 2083f3f commit 038875e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Pools/MRR.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,9 @@ try {
$rigproft = ((($KnownAlgos.Keys | Where-Object { $KnownTypes -contains $_ } | ForEach-Object { $KnownAlgos[$_] }) |
ForEach-Object { ($_.Values | Where-Object { $_ -and $_.Profit -gt 0 } | Measure-Object Profit -Maximum) }) | Measure-Object -Property Maximum -Sum).Sum
$persprofit = $rigproft * (100 + [math]::Max($Cfg.Target, $Cfg.TargetByAlgorithm."$($Algo.Algorithm)")) / 100
# check lower floor
$lf = ($KnownAlgos.Keys | ForEach-Object { Get-ProfitLowerFloor $_ } | Measure-Object -Sum).Sum
$persprofit = [math]::Max($persprofit, $lf)
# Write-Host "$($Algo.Algorithm) Profit rig $([decimal]::Round($sumprofit, 8)), alg $([decimal]::Round($persprofit, 8))"
$Speed = (($KnownAlgos.Values | ForEach-Object { $t = $_[$Algo.Algorithm]; if ($t) { $t } }) | Measure-Object Speed -Sum).Sum
$Profit = $Speed * $Algo.Extra["price"]
Expand Down

0 comments on commit 038875e

Please sign in to comment.