Don't just refresh once, refresh infinitely

This commit is contained in:
2021-07-14 11:33:00 -04:00
parent 3249f651d1
commit 1148c1d5c2

View File

@ -120,8 +120,10 @@ func main() {
setValues() setValues()
if refresh >= 1{ if refresh >= 1{
go func() { go func() {
for {
time.Sleep(time.Duration(refresh) * time.Minute) time.Sleep(time.Duration(refresh) * time.Minute)
setValues() setValues()
}
}() }()
} }