diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-09-29 21:18:19 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-29 21:18:19 -0400 |
commit | 104f47e1ebf631650bb7be15f2390c4632e82316 (patch) | |
tree | b81d97884b6f3be27107911f81404e227dcaae04 /gpsprof | |
parent | a288b35ae72d57f01ec3f0d829f8087b5405a390 (diff) | |
download | gpsd-104f47e1ebf631650bb7be15f2390c4632e82316.tar.gz |
Avoid failure on very long gpsprof runs.
Diffstat (limited to 'gpsprof')
-rwxr-xr-x | gpsprof | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -47,10 +47,10 @@ class plotter: self.fixes = [] self.start_time = int(time.time()) def whatami(self): - "How do we identify this poltting run?" + "How do we identify this pollting run?" return "%s, %s, %d %dN%d, cycle %ds" % \ (gps.misc.isotime(self.start_time), - self.device['driver'], self.device['bps'], + self.device.get('driver', "unknown"), self.device['bps'], 9 - self.device['stopbits'], self.device['stopbits'], self.device['cycle']) def collect(self, verbose): |