[libgweather/issue-39: 2/2] Use miles per hour as the default wind speed
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/issue-39: 2/2] Use miles per hour as the default wind speed
- Date: Fri, 3 Apr 2020 21:54:42 +0000 (UTC)
commit 60c9a8b57d9066845e002a828d1246c414a271a6
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Apr 3 19:54:35 2020 +0100
Use miles per hour as the default wind speed
On non-metric locales, instead of knots.
Fixes: #39
libgweather/gweather-weather.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgweather/gweather-weather.c b/libgweather/gweather-weather.c
index 1f0ae25..4759109 100644
--- a/libgweather/gweather-weather.c
+++ b/libgweather/gweather-weather.c
@@ -1050,7 +1050,7 @@ speed_unit_to_real (GWeatherSpeedUnit unit)
if (unit == GWEATHER_SPEED_UNIT_DEFAULT)
return is_locale_metric() ?
GWEATHER_SPEED_UNIT_KPH :
- GWEATHER_SPEED_UNIT_KNOTS;
+ GWEATHER_SPEED_UNIT_MPH;
return unit;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]