breto

A status bar written in Go.
Log | Files | Refs | README | LICENSE

commit 85ed0bc277e97ee086ba8b7c3579e19b93f9557d
parent d192927470b6512fb1ff6e5c04f3534b687a4a4c
Author: Jaron Swab <jrswab@gmail.com>
Date:   Wed, 29 May 2019 21:54:33 -0400

more comment editing

Diffstat:
Mlibs/wttr/wttr.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libs/wttr/wttr.go b/libs/wttr/wttr.go @@ -17,9 +17,9 @@ func Local(cWttr chan string) { for range ticker.C { passed = time.Since(start).Seconds() // total seconds passed hour = math.Floor(math.Remainder(passed, 3600)) - + if passed < 10 || hour == 0 { - resp, err := http.Get("https://wttr.in/?format=%t+%w") // for more wttr options see https://wttr.in/:help + resp, err := http.Get("https://wttr.in/?format=%t+%w") // for options see https://wttr.in/:help if err != nil { errMessage := "wttr connection issue" cWttr <- errMessage