Skip to content

Commit

Permalink
fix pool balance
Browse files Browse the repository at this point in the history
  • Loading branch information
Quake4 committed Jan 2, 2018
1 parent 4b8ddc0 commit f821042
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Get-PoolInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,13 @@ function Out-PoolBalance {
if ($values -and $values.Length -gt 0) {
$sum = $values | Measure-Object "Confirmed", "Unconfirmed", "Balance" -Sum
$values += [PSCustomObject]@{ Name = "Total:"; Confirmed = $sum[0].Sum; Unconfirmed = $sum[1].Sum; Balance = $sum[2].Sum }
Remove-Variable sum
}
$values |
Format-Table @{ Label="Pool"; Expression = { $_.Name } },
@{ Label="Confirmed, BTC"; Expression = { $_.Confirmed }; FormatString = "N8" },
@{ Label="Unconfirmed, BTC"; Expression = { $_.Unconfirmed }; FormatString = "N8" },
@{ Label="Balance, BTC"; Expression = { $_.Balance }; FormatString = "N8" } |
Out-Host
Remove-Variable sum, values
Remove-Variable values
}

0 comments on commit f821042

Please sign in to comment.