Updating branch refs/heads/master
         to d2b818c4bfb83ba1b3a41dfd0daf3c80e1509cc4 (commit)
       from c8b2decf176f36b8098c60853b5c187d91f08091 (commit)

commit d2b818c4bfb83ba1b3a41dfd0daf3c80e1509cc4
Author: Harald Judt <[email protected]>
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)
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to