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
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user