mirror of
https://github.com/LeRoid-hub/humiditycalc.git
synced 2025-01-31 03:34:56 +00:00
Update cache.go
This commit is contained in:
parent
a63fa5b728
commit
f7f47f716d
@ -19,7 +19,7 @@ func (w *WeatherCache) SetData(humidity float64, temperature float64) {
|
|||||||
w.Humidity = humidity
|
w.Humidity = humidity
|
||||||
w.Temperature = temperature
|
w.Temperature = temperature
|
||||||
w.timestamp = time.Now()
|
w.timestamp = time.Now()
|
||||||
w.duration = 60
|
w.duration = 300
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *WeatherCache) GetData() (float64, float64) {
|
func (w *WeatherCache) GetData() (float64, float64) {
|
||||||
|
Loading…
Reference in New Issue
Block a user