summaryrefslogtreecommitdiff
path: root/bar.go
diff options
context:
space:
mode:
authorJackson Taylor <jtaylormuffins@gmail.com>2020-04-11 12:10:32 -0400
committerJackson Taylor <jtaylormuffins@gmail.com>2020-04-11 12:10:32 -0400
commitfeb0dfc20171ba5f0fe2b7defc3452744dd9e2d0 (patch)
tree0c8f07f408e3df539ad99af9cd2d7c8cd6111746 /bar.go
parent203575b1f97501fd190bea67c11552f0635faa8d (diff)
Change where loop occurs
Move the main program loop to main.go instead of in the bar itself
Diffstat (limited to 'bar.go')
-rw-r--r--bar.go3
1 files changed, 1 insertions, 2 deletions
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