From 038875e110a5fb559233ce31fe8e5eb75506fb3c Mon Sep 17 00:00:00 2001 From: Quake4 Date: Sun, 21 Feb 2021 21:13:27 +0300 Subject: [PATCH] try check lower floor #816 --- Pools/MRR.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Pools/MRR.ps1 b/Pools/MRR.ps1 index acaade28..4e15701e 100644 --- a/Pools/MRR.ps1 +++ b/Pools/MRR.ps1 @@ -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"]