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:
committed by
Chris Cummer
parent
a365c1df96
commit
693a05cf43
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user