diff --git a/load/load_windows.go b/load/load_windows.go index 005ef43..e95ab39 100644 --- a/load/load_windows.go +++ b/load/load_windows.go @@ -36,7 +36,8 @@ func loadAvgGoroutine(ctx context.Context) { ) tick := time.NewTicker(samplingFrequency).C - for { + + f := func() { // calling this because common.ProcessorQueueLengthCounter() returns zero values all time w, err := common.GetSystemProcessInformation() if err != nil {