Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Remove defers in widget loading
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Apr 29, 2018
1 parent 92374f2 commit 21747ec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,29 +194,29 @@ func initWidgets() {
wg.Add(widgetCount)

go func() {
defer wg.Done()
cpu = w.NewCPU(interval, zoom)
wg.Done()
}()
go func() {
defer wg.Done()
mem = w.NewMem(interval, zoom)
wg.Done()
}()
go func() {
defer wg.Done()
proc = w.NewProc(keyPressed)
wg.Done()
}()
if !minimal {
go func() {
defer wg.Done()
net = w.NewNet()
wg.Done()
}()
go func() {
defer wg.Done()
disk = w.NewDisk()
wg.Done()
}()
go func() {
defer wg.Done()
temp = w.NewTemp()
wg.Done()
}()
}

Expand Down

0 comments on commit 21747ec

Please sign in to comment.