From 4661ae2e5fab924cca340da2f7a67cab05450026 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 4 Oct 2011 20:12:58 -0400 Subject: GPSes give us at most 1ms of time precision. Don't plot as if we have more. --- gpsprof | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gpsprof') 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 = ( -- cgit v1.2.1