1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

More sensible timer units

This commit is contained in:
Chris Cummer
2018-03-31 09:25:42 -07:00
committed by Chris Cummer
parent a365c1df96
commit 693a05cf43
5 changed files with 10 additions and 10 deletions

View File

@@ -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 {