From b08d45596988ce38033e0c4786f995b05fb6429d Mon Sep 17 00:00:00 2001 From: Gustavo Chain Date: Sat, 15 Feb 2020 21:27:38 +0100 Subject: [PATCH] fix block filling --- ui/blocks.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/blocks.go b/ui/blocks.go index 3d0c742..5b26a32 100644 --- a/ui/blocks.go +++ b/ui/blocks.go @@ -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) }