diff --git a/Code/Start-ApiServer.ps1 b/Code/Start-ApiServer.ps1 index 83080f6f..91e1354f 100644 --- a/Code/Start-ApiServer.ps1 +++ b/Code/Start-ApiServer.ps1 @@ -59,7 +59,7 @@ function Start-ApiServer { $content = $API.Pools | ConvertTo-Json } "/mrrpool" { - $content = $API.MRRPool | ConvertTo-Json -Depth 10 + $content = $API.MRRPool } "/devices" { $content = $API.Devices | ConvertTo-Json diff --git a/Pools/MRR.ps1 b/Pools/MRR.ps1 index 87f978e6..f13a7ab2 100644 --- a/Pools/MRR.ps1 +++ b/Pools/MRR.ps1 @@ -263,7 +263,7 @@ try { else { $mine = $mrr.Get("/rig/mine") if ($Config.ApiServer -and $global:API.Running) { - $global:API.MRRPool = @{ Server = $server; FailoverServer = $failoverserver; Algos = $algs; Mine = [array]$mine } + $global:API.MRRPool = @{ Server = $server; FailoverServer = $failoverserver; Algos = $algs; Mine = [array]$mine } | ConvertTo-Json -Depth 10 } } Remove-Variable algs