summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-30 02:47:39 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-30 02:47:39 -0400
commit860713388fd1281f732f54cefc22b0328cb0b3d3 (patch)
treea604a3b88773da5c778b78a231eac1dd8d988e24 /gpsprof
parent44c6a6b7f969e0c31044a6f478a2f6fdad392e92 (diff)
downloadgpsd-860713388fd1281f732f54cefc22b0328cb0b3d3.tar.gz
Fix an error in the whole-cycle visualizations.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsprof b/gpsprof
index e7fd9c23..ba7de0ae 100755
--- a/gpsprof
+++ b/gpsprof
@@ -267,7 +267,7 @@ class instrumented(plotter):
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, rs232_time, xmit-time, recv-time)
+ res += "% 8s %.9f %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 = (