mirror of
https://github.com/nxshock/trayweather.git
synced 2025-07-02 00:23:43 +05:00
Count update period as number of minutes
This commit is contained in:
parent
f7c68897c7
commit
fce38603d8
3 changed files with 7 additions and 10 deletions
2
main.go
2
main.go
|
@ -54,7 +54,7 @@ func update() {
|
|||
|
||||
systray.SetTooltip(fmt.Sprintf("%s\n%.1f °C (%.1f °C)", c.Description(), c.CurrentTemperature(), c.FeelsLikeTemperature()))
|
||||
setTrayIcon(c.IconName())
|
||||
time.Sleep(config.UpdatePeriod)
|
||||
time.Sleep(time.Duration(config.UpdatePeriodMin) * time.Minute)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue