[libgweather/issue-39] Use miles per hour as the default wind speed
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather/issue-39] Use miles per hour as the default wind speed
- Date: Fri, 3 Apr 2020 18:55:53 +0000 (UTC)
commit 083c7bc047a73ea5c4c56ee701f791eead036a6f
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]