fix block filling

This commit is contained in:
Gustavo Chain 2020-02-15 21:27:38 +01:00
parent 6c91f757aa
commit b08d455969
No known key found for this signature in database
GPG Key ID: DA7C1746DC118A46

View File

@ -99,8 +99,8 @@ func (b Block) Print(n int, x, _y int) []byte {
Printf(color.FgWhite, "%s ago", fmtSeconds(ago))
full := int(
float64(b.Weight) / 4000000 * 10,
float64(b.Weight) / 4_000_000 * 10,
)
return box.Render(full+4, color.BgBlue)
return box.Render(full, color.BgBlue)
}