From 1148c1d5c2a15169d06325714708acd82f674701 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 14 Jul 2021 11:33:00 -0400 Subject: [PATCH] Don't just refresh once, refresh infinitely --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index e25f289..5d44d44 100644 --- a/main.go +++ b/main.go @@ -120,8 +120,10 @@ func main() { setValues() if refresh >= 1{ go func() { - time.Sleep(time.Duration(refresh) * time.Minute) - setValues() + for { + time.Sleep(time.Duration(refresh) * time.Minute) + setValues() + } }() }