Skip to content

Commit

Permalink
Minor Fix
Browse files Browse the repository at this point in the history
Fixed the double hash rate problem with sgminer.
  • Loading branch information
aaronsace committed Jan 7, 2017
1 parent b48e66d commit 4209296
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Include.ps1
Expand Up @@ -174,7 +174,8 @@ function Get-HashRate

$Request = $Reader.ReadToEnd()
$Data = ($Request.Substring($Request.IndexOf("{"),$Request.LastIndexOf("}")-$Request.IndexOf("{")+1) | ConvertFrom-Json).SUMMARY
([Decimal]$Data[0].'KHS 5s'*$Multiplier)+([Decimal]$Data[0].'MHS 5s'*$Multiplier*$Multiplier)
if($Data[0].'MHS 5s' -ne $null){[Decimal]$Data[0].'MHS 5s'*$Multiplier*$Multiplier}
elseif($Data[0].'KHS 5s' -ne $null){[Decimal]$Data[0].'KHS 5s'*$Multiplier}
}
"ccminer"
{
Expand Down Expand Up @@ -276,4 +277,4 @@ function Get-Combination {
{
$Permutations | ForEach {[PSCustomObject]@{Combination = ($_.Permutation | Select -First $i | Sort {$_})}} | Sort Combination -Unique | ForEach {[PSCustomObject]@{Combination = ($_.Combination | ForEach {$Value.GetValue($_)})}}
}
}
}

0 comments on commit 4209296

Please sign in to comment.