Browse Source

Don't just refresh once, refresh infinitely

ui_file
Gregory Rudolph 4 years ago
parent
commit
1148c1d5c2
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 2
      main.go

2
main.go

@ -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()
}
}() }()
} }

Loading…
Cancel
Save