diff --git a/Code/Get-Speed.ps1 b/Code/Get-Speed.ps1 index c6ab2bd7..f2cb6dc3 100644 --- a/Code/Get-Speed.ps1 +++ b/Code/Get-Speed.ps1 @@ -411,7 +411,7 @@ function Get-Speed([Parameter(Mandatory = $true)] [MinerProcess[]] $MinerProcess Get-HttpAsJson $MP "http://$Server`:$Port/summary" { Param([PSCustomObject] $resjson) - $unit = $alg.Performance_Unit -replace "h/s" -replace "sol/s" -replace "g/s"; + $unit = $resjson.Session.Performance_Unit -replace "h/s" -replace "sol/s" -replace "g/s"; $resjson.GPUs | ForEach-Object { Set-SpeedStr ($_.Index) ($_.Performance) $unit }