summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2017-07-26 17:24:22 -0700
committerGary E. Miller <gem@rellim.com>2017-07-26 17:24:22 -0700
commitd22c62a328bd06f3c7ce3eb1d9a309d73b4a96ff (patch)
tree3d69db8da5917af5f3684fa99d72cbc9f6e7950e /gpsprof
parentc6b917252c5982f0ab5d98b3fa9815b8d50c7207 (diff)
downloadgpsd-d22c62a328bd06f3c7ce3eb1d9a309d73b4a96ff.tar.gz
gpsprof: lint does not like mixing types for a variable.
Make alt_sum always a float.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsprof b/gpsprof
index a4e58fd6..2e3ccb0e 100755
--- a/gpsprof
+++ b/gpsprof
@@ -228,7 +228,7 @@ class spaceplot(plotter):
self.centroid[:2], self.fixes[int(len(self.fixes) * 0.95)][:2])
cep99_meters = gps.misc.EarthDistance(
self.centroid[:2], self.fixes[int(len(self.fixes) * 0.99)][:2])
- alt_sum = 0
+ alt_sum = 0.0
alt_num = 0
alt_fixes = []
lon_max = -9999