From 21747ecd0672b7cdc0e6e8cebe4b31f8dadda948 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Sat, 28 Apr 2018 19:30:09 -0700 Subject: [PATCH] Remove defers in widget loading --- main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 85635b5..2705460 100644 --- a/main.go +++ b/main.go @@ -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() }() }