diff options
author | Caleb Bassi <calebjbassi@gmail.com> | 2018-04-12 20:00:34 -0700 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2018-04-12 20:28:42 -0700 |
commit | 95dbe56b9adcbfcbf9696131b3b9834c41a65dfd (patch) | |
tree | dcc0a1c94e245fd2d063aba6c7231bbc46960bc4 /widgets/temp.go | |
parent | 77c8a500fcbb53f83fc9aa1927922db578e3173a (diff) |
Fix widget initialization
Diffstat (limited to 'widgets/temp.go')
-rw-r--r-- | widgets/temp.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/temp.go b/widgets/temp.go index 9478cd1..895f1d7 100644 --- a/widgets/temp.go +++ b/widgets/temp.go @@ -31,7 +31,8 @@ func NewTemp() *Temp { } self.Label = "Temperatures" - go self.update() + self.update() + ticker := time.NewTicker(self.interval) go func() { for range ticker.C { |