weather: minor formatting changes in checkUpdate()

Origin commit data
------------------
Commit: c09903b255
Author: vanhofen <vanhofen@gmx.de>
Date: 2024-01-08 (Mon, 08 Jan 2024)

Origin message was:
------------------
- weather: minor formatting changes in checkUpdate()

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2024-01-08 21:48:28 +01:00
committed by Thilo Graf
parent 1b801b818f
commit 4dd2d83d3a

View File

@@ -81,10 +81,11 @@ void CWeather::setCoords(std::string new_coords, std::string new_city)
bool CWeather::checkUpdate(bool forceUpdate)
{
time_t current_time = time(NULL);
if (forceUpdate || (difftime(current_time, last_time) > (UPDATE_CYCLE * 60)))
return GetWeatherDetails();
else
return false;
return false;
}
bool CWeather::GetWeatherDetails()