diff options
author | kazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-06-22 09:27:53 +0000 |
---|---|---|
committer | kazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-06-22 09:27:53 +0000 |
commit | 6c51e481995ffec07a4235d2bb97a7a9354e2f82 (patch) | |
tree | 2b34c9e39d2f6806f46c8ac8b2967b9b86b38762 /navit/vehicle.c | |
parent | 504fd002d0fef697c95f309b18a8efaae04ba257 (diff) | |
download | navit-6c51e481995ffec07a4235d2bb97a7a9354e2f82.tar.gz |
Fix:Core:Use m/s unit for speed in GPX log, ticket #592
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3371 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicle.c')
-rw-r--r-- | navit/vehicle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/vehicle.c b/navit/vehicle.c index 933305044..d94286f25 100644 --- a/navit/vehicle.c +++ b/navit/vehicle.c @@ -466,7 +466,7 @@ vehicle_log_gpx(struct vehicle *this_, struct log *log) if (attr_types_contains_default(attr_types, attr_position_direction,0) && this_->meth.position_attr_get(this_->priv, attr_position_direction, &attr)) logstr=g_strconcat_printf(logstr,"\t<course>%.1f</course>\n",*attr.u.numd); if (attr_types_contains_default(attr_types, attr_position_speed, 0) && this_->meth.position_attr_get(this_->priv, attr_position_speed, &attr)) - logstr=g_strconcat_printf(logstr,"\t<speed>%.2f</speed>\n",*attr.u.numd); + logstr=g_strconcat_printf(logstr,"\t<speed>%.2f</speed>\n",(*attr.u.numd / 3.6)); if (attr_types_contains_default(attr_types, attr_profilename, 0) && (attrp=attr_search(this_->attrs, NULL, attr_profilename))) { logstr=g_strconcat_printf(logstr,"%s\t\t<navit:profilename>%s</navit:profilename>\n",extensions,attrp->u.str); extensions=""; |