Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew committed Jun 9, 2018
1 parent 71364c9 commit 6b515d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blockfolio/widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ func contentFrom(positions *AllPositionsResponse) string {
colorForChange = colorDrop
}
totalFiat += positions.PositionList[i].HoldingValueFiat
res = res + fmt.Sprintf("[%s]%6s - %5.2f ([%s]%.2fk [%s]%.2f%)\n", colorName, positions.PositionList[i].Coin, positions.PositionList[i].Quantity, colorForChange, positions.PositionList[i].HoldingValueFiat/1000, colorForChange, positions.PositionList[i].TwentyFourHourPercentChangeFiat)
res = res + fmt.Sprintf("[%s]%6s - %5.2f ([%s]%.2fk [%s]%.2f%s)\n", colorName, positions.PositionList[i].Coin, positions.PositionList[i].Quantity, colorForChange, positions.PositionList[i].HoldingValueFiat/1000, colorForChange, positions.PositionList[i].TwentyFourHourPercentChangeFiat, "%")
}
res = res + fmt.Sprintf("\n[%s]Total value: $%.2f", "green", totalFiat/1000)
res = res + fmt.Sprintf("\n[%s]Total value: $%.2fk", "green", totalFiat/1000)

return res
}
Expand Down

0 comments on commit 6b515d8

Please sign in to comment.