1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
This commit is contained in:
Andrew 2018-06-10 02:24:46 +03:00
parent aff01f7fde
commit 82e81b9a21

View File

@ -50,7 +50,7 @@ func contentFrom(positions *AllPositionsResponse) string {
colorName := Config.UString("wtf.mods.blockfolio.colors.name") colorName := Config.UString("wtf.mods.blockfolio.colors.name")
colorGrows := Config.UString("wtf.mods.blockfolio.colors.grows") colorGrows := Config.UString("wtf.mods.blockfolio.colors.grows")
colorDrop := Config.UString("wtf.mods.blockfolio.colors.drop") colorDrop := Config.UString("wtf.mods.blockfolio.colors.drop")
totalFiat := 0 totalFiat := 0.0
for i := 0; i < len(positions.PositionList); i++ { for i := 0; i < len(positions.PositionList); i++ {
colorForChange := colorGrows colorForChange := colorGrows
if positions.PositionList[i].TwentyFourHourPercentChangeFiat <= 0 { if positions.PositionList[i].TwentyFourHourPercentChangeFiat <= 0 {