[Xfce4-commits] <xfce4-weather-plugin:master> Fix check for reading astrodata from cache file.
Harald Judt
noreply at xfce.org
Mon Feb 18 11:10:01 CET 2013
Updating branch refs/heads/master
to 5b92c2f022190317f4087032d3450af675f0e2ea (commit)
from fa906e4503dbb0a23e5e48305a504ad50a25c63e (commit)
commit 5b92c2f022190317f4087032d3450af675f0e2ea
Author: Harald Judt <h.judt at gmx.at>
Date: Mon Feb 18 11:04:00 2013 +0100
Fix check for reading astrodata from cache file.
A wrong check caused importing obsolete data and resulted in problems
with updating the icon and maybe other stuff related to astrodata.
panel-plugin/weather.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index 824a281..710c33c 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -1222,7 +1222,7 @@ read_cache_file(plugin_data *data)
astro_data_t =
time_calc(cache_date_tm, 0, 0, 0, 0 - cache_date_tm.tm_hour,
0 - cache_date_tm.tm_min, 0 - cache_date_tm.tm_sec);
- diff = difftime(cache_date_t, astro_data_t);
+ diff = difftime(now_t, astro_data_t);
if (g_key_file_has_group(keyfile, group)
&& diff > 0 && diff < 24 * 3600) {
weather_debug("Reusing cached astrodata instead of downloading it.");
More information about the Xfce4-commits
mailing list