diff --git a/bamboohr/widget.go b/bamboohr/widget.go index 205e2334..eb5da302 100644 --- a/bamboohr/widget.go +++ b/bamboohr/widget.go @@ -18,7 +18,7 @@ func NewWidget() *Widget { BaseWidget: wtf.BaseWidget{ Name: "BambooHR", RefreshedAt: time.Now(), - RefreshInterval: 3600, + RefreshInterval: 15, }, } @@ -75,7 +75,7 @@ func (widget *Widget) display(item Item) string { } func (widget *Widget) refresher() { - tick := time.NewTicker(time.Duration(widget.RefreshInterval) * time.Second) + tick := time.NewTicker(time.Duration(widget.RefreshInterval) * time.Minute) quit := make(chan struct{}) for { diff --git a/gcal/widget.go b/gcal/widget.go index 1cffb5af..24cffdec 100644 --- a/gcal/widget.go +++ b/gcal/widget.go @@ -20,7 +20,7 @@ func NewWidget() *Widget { BaseWidget: wtf.BaseWidget{ Name: "Calendar", RefreshedAt: time.Now(), - RefreshInterval: 60, + RefreshInterval: 3, }, } @@ -94,7 +94,7 @@ func descriptionColor(item *calendar.Event) string { } func (widget *Widget) refresher() { - tick := time.NewTicker(time.Duration(widget.RefreshInterval) * time.Second) + tick := time.NewTicker(time.Duration(widget.RefreshInterval) * time.Minute) quit := make(chan struct{}) for { diff --git a/security/client.go b/security/client.go index 88d8f658..87e25278 100644 --- a/security/client.go +++ b/security/client.go @@ -5,10 +5,10 @@ import () func Fetch() map[string]string { data := make(map[string]string) - data["Wifi Network"] = WifiName() - data["Wifi Encryption"] = WifiEncryption() data["Firewall Enabled"] = FirewallState() data["Firewall Stealth"] = FirewallStealthState() + data["Wifi Encryption"] = WifiEncryption() + data["Wifi Network"] = WifiName() return data } diff --git a/security/widget.go b/security/widget.go index 203a7ed2..52fc960a 100644 --- a/security/widget.go +++ b/security/widget.go @@ -19,7 +19,7 @@ func NewWidget() *Widget { BaseWidget: wtf.BaseWidget{ Name: "Security", RefreshedAt: time.Now(), - RefreshInterval: 300, + RefreshInterval: 60, }, } @@ -73,7 +73,7 @@ func (widget *Widget) contentFrom(data map[string]string) string { } func (widget *Widget) refresher() { - tick := time.NewTicker(time.Duration(widget.RefreshInterval) * time.Second) + tick := time.NewTicker(time.Duration(widget.RefreshInterval) * time.Minute) quit := make(chan struct{}) for { diff --git a/weather/widget.go b/weather/widget.go index e19d02ea..0b843a6d 100644 --- a/weather/widget.go +++ b/weather/widget.go @@ -20,7 +20,7 @@ func NewWidget() *Widget { BaseWidget: wtf.BaseWidget{ Name: "Weather", RefreshedAt: time.Now(), - RefreshInterval: 600, + RefreshInterval: 15, }, } @@ -131,7 +131,7 @@ func icon(data *owm.CurrentWeatherData) string { } func (widget *Widget) refresher() { - tick := time.NewTicker(time.Duration(widget.RefreshInterval) * time.Second) + tick := time.NewTicker(time.Duration(widget.RefreshInterval) * time.Minute) quit := make(chan struct{}) for {