diff options
author | Gary E. Miller <gem@rellim.com> | 2017-07-26 17:24:22 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2017-07-26 17:24:22 -0700 |
commit | d22c62a328bd06f3c7ce3eb1d9a309d73b4a96ff (patch) | |
tree | 3d69db8da5917af5f3684fa99d72cbc9f6e7950e /gpsprof | |
parent | c6b917252c5982f0ab5d98b3fa9815b8d50c7207 (diff) | |
download | gpsd-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-x | gpsprof | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |