From feb0dfc20171ba5f0fe2b7defc3452744dd9e2d0 Mon Sep 17 00:00:00 2001 From: Jackson Taylor Date: Sat, 11 Apr 2020 12:10:32 -0400 Subject: Change where loop occurs Move the main program loop to main.go instead of in the bar itself --- bar.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bar.go') diff --git a/bar.go b/bar.go index 5974ff4..159de50 100644 --- a/bar.go +++ b/bar.go @@ -13,8 +13,7 @@ func (b Bar) Display() string { for _, mod := range b.Modules { s, _ := mod.GetInfo() - val += s - time.Sleep(b.RefreshRate) + val += "[" + s + "]" } return val -- cgit v1.2.3