summaryrefslogtreecommitdiff
path: root/xgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-04-27 03:16:17 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-04-27 03:16:17 +0000
commit3040c033edc129762bc47730ba11ebe676d79518 (patch)
treec4c288d2162d93adf2bb5bfb4a7a47425dd0c73d /xgps.c
parent0f7cafe067ee6ece9ba7a3996dde8d6ba41868d6 (diff)
downloadgpsd-3040c033edc129762bc47730ba11ebe676d79518.tar.gz
O command now reports speeds in meters/sec, making the O report all SI units.
Diffstat (limited to 'xgps.c')
-rw-r--r--xgps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xgps.c b/xgps.c
index cd4d2e4e..a1868d5f 100644
--- a/xgps.c
+++ b/xgps.c
@@ -43,9 +43,9 @@ struct unit_t {
float factor;
};
static struct unit_t speedtable[] = {
- {"knots", 1},
- {"mph", KNOTS_TO_MPH},
- {"kph", KNOTS_TO_KPH},
+ {"knots", 1/KNOTS_TO_KPH},
+ {"mph", MPS_TO_MPH},
+ {"kph", MPS_TO_KPH},
}, *speedunits = speedtable;
static struct unit_t alttable[] = {
{"feet", METERS_TO_FEET},