summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-10-04 20:12:58 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-10-04 20:12:58 -0400
commit4661ae2e5fab924cca340da2f7a67cab05450026 (patch)
tree983d8344dada7d706952316ee7327fc92336f9ab /gpsprof
parentf004284b373cbdec5f157e7f513aa00cdd99e139 (diff)
downloadgpsd-4661ae2e5fab924cca340da2f7a67cab05450026.tar.gz
GPSes give us at most 1ms of time precision. Don't plot as if we have more.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsprof b/gpsprof
index ba7de0ae..7ee79b68 100755
--- a/gpsprof
+++ b/gpsprof
@@ -261,13 +261,13 @@ class instrumented(plotter):
return True
def header(self):
res = "# Analyzed latency, " + self.whatami() + "\n"
- res += "#- Tag - ----- Fix time ----- - Chars - - Latency - -- RS232 -- --Analysis- --- Recv --\n"
+ res += "#- Tag - -- Fix time -- - Chars - - Latency - -- RS232 -- --Analysis- --- Recv --\n"
return res
def data(self):
res = ""
for (tag, time, chars, start, xmit, recv) in self.fixes:
rs232_time = (chars * 10.0) / self.device['bps']
- res += "% 8s %.9f %9u %.9f %.9f %.9f %.9f\n" % (tag, time, chars, start-time, (start-time)+rs232_time, xmit-time, recv-time)
+ res += "% 8s %.3f %9u %.9f %.9f %.9f %.9f\n" % (tag, time, chars, start-time, (start-time)+rs232_time, xmit-time, recv-time)
return res
def plot(self):
legends = (