Skip to content

Commit

Permalink
move json serialization of mrr data to mrr pool
Browse files Browse the repository at this point in the history
  • Loading branch information
Quake4 committed Mar 4, 2022
1 parent 6b1615f commit defe5aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Code/Start-ApiServer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Pools/MRR.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit defe5aa

Please sign in to comment.