nemosminer / NemosMiner

NemosMiner multi algo profit switching NVIDIA miner
GNU General Public License v3.0
230 stars 105 forks source link

Feature Request - only display miners with the best hashrate #859

Open MonaxDK opened 5 years ago

MonaxDK commented 5 years ago

It would be nice to make the option "only display miners with the best hashrate", and not all that have a specific algorithm. Without this, the list is very long and difficult to navigate, especially with Optional miners enabled.

UselessGuru commented 5 years ago

@nemosminer

In MPM I use this code:

    #Use only use fastest miner per algo and device index. E.g. if there are 2 miners available to mine the same algo, only the faster of the two will ever be used, the slower ones will also be hidden in the summary screen
    if ($Config.UseFastestMinerPerAlgoOnly) {$Miners = $Miners | Sort-Object -Descending {"$($_.DeviceName -join '')$(($_.HashRates.PSObject.Properties.Name | Foreach-Object {$_ -split "-" | Select-Object -Index 0}) -join '')$(if($_.HashRates.PSObject.Properties.Value -eq $null) {$_.Name})"}, {($_ | Where-Object Profit -EQ $null | Measure-Object).Count}, {([Double]($_ | Measure-Object Profit_Bias -Sum).Sum)}, {($_ | Where-Object Profit -NE 0 | Measure-Object).Count} | Group-Object {"$($_.DeviceName -join '')$(($_.HashRates.PSObject.Properties.Name | ForEach-Object {$_ -split "-" | Select-Object -Index 0}) -join '')$(if($_.HashRates.PSObject.Properties.Value -eq $null) {$_.Name})"} | Foreach-Object {$_.Group[0]}}