mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user