Skip to content

Commit

Permalink
Fix index out of bounds error
Browse files Browse the repository at this point in the history
($Miner_HashRates is undefined in scope)
  • Loading branch information
nemosminer committed Dec 20, 2017
1 parent b2db0f1 commit 95a3408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NemosMiner-v2.3.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ while($true)
#Benchmark timeout
if($_.Benchmarked -ge 6 -or ($_.Benchmarked -ge 2 -and $_.Activated -ge 2))
{
for($i = $Miner_HashRates.Count; $i -lt $_.Algorithms.Count; $i++)
for($i = 0; $i -lt $_.Algorithms.Count; $i++)
{
if((Get-Stat "$($_.Name)_$($_.Algorithms | Select -Index $i)_HashRate") -eq $null)
{
Expand Down

0 comments on commit 95a3408

Please sign in to comment.