[Xfce4-commits] <xfce4-weather-plugin:master> Fix night time check.
Harald Judt
noreply at xfce.org
Sat Jan 26 12:20:02 CET 2013
Updating branch refs/heads/master
to d2b818c4bfb83ba1b3a41dfd0daf3c80e1509cc4 (commit)
from c8b2decf176f36b8098c60853b5c187d91f08091 (commit)
commit d2b818c4bfb83ba1b3a41dfd0daf3c80e1509cc4
Author: Harald Judt <h.judt at gmx.at>
Date: Sat Jan 26 11:56:51 2013 +0100
Fix night time check.
panel-plugin/weather-data.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/weather-data.c b/panel-plugin/weather-data.c
index 16e0a1a..e0bb803 100644
--- a/panel-plugin/weather-data.c
+++ b/panel-plugin/weather-data.c
@@ -502,7 +502,7 @@ is_night_time(const xml_astro *astro)
return FALSE;
/* Sunrise and sunset are known */
- if (difftime(astro->sunrise, now_t) >= 0)
+ if (difftime(astro->sunrise, now_t) > 0)
return TRUE;
if (difftime(astro->sunset, now_t) <= 0)
More information about the Xfce4-commits
mailing list