[Xfce4-commits] <xfce4-weather-plugin:master> Round wind direction (in degrees) too.

Harald Judt noreply at xfce.org
Tue Nov 27 16:46:16 CET 2012


Updating branch refs/heads/master
         to 0547e0a057e5cd32740abf02e2b257e560c017ad (commit)
       from a450cb9ddca6caa1fc4b7faaece3e58e85e14b6b (commit)

commit 0547e0a057e5cd32740abf02e2b257e560c017ad
Author: Harald Judt <h.judt at gmx.at>
Date:   Sat Nov 24 01:18:08 2012 +0100

    Round wind direction (in degrees) too.

 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 b205669..5f610d7 100644
--- a/panel-plugin/weather-data.c
+++ b/panel-plugin/weather-data.c
@@ -139,7 +139,7 @@ get_data(const xml_time *timeslice,
         return CHK_NULL(loc->wind_dir_name);
 
     case WIND_DIRECTION_DEG:
-        return LOCALE_DOUBLE(loc->wind_dir_deg, "%.1f");
+        return LOCALE_DOUBLE(loc->wind_dir_deg, ROUND_TO_INT("%.1f"));
 
     case HUMIDITY:
         return LOCALE_DOUBLE(loc->humidity_value, ROUND_TO_INT("%.1f"));


More information about the Xfce4-commits mailing list