Update cache.go

This commit is contained in:
Jan 2024-11-03 22:07:13 +01:00 committed by GitHub
parent a63fa5b728
commit f7f47f716d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@ func (w *WeatherCache) SetData(humidity float64, temperature float64) {
w.Humidity = humidity
w.Temperature = temperature
w.timestamp = time.Now()
w.duration = 60
w.duration = 300
}
func (w *WeatherCache) GetData() (float64, float64) {