summaryrefslogtreecommitdiff
path: root/gpsprof
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-11-03 08:01:59 -0500
committerEric S. Raymond <esr@thyrsus.com>2013-11-03 08:01:59 -0500
commit34eaeaeb7af755e07166947de515bc0d04226427 (patch)
tree0049d3c17d465aca3b3a3034e1de5db95b2191ad /gpsprof
parentb684c9278f14f683f1d77e91d04cb040a4de6aa1 (diff)
downloadgpsd-34eaeaeb7af755e07166947de515bc0d04226427.tar.gz
Fix up gpsprof's dime difference calculation and add a mtching C macro.
All regression tests pass. PPS is live.
Diffstat (limited to 'gpsprof')
-rwxr-xr-xgpsprof2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpsprof b/gpsprof
index 05fe4736..da34305a 100755
--- a/gpsprof
+++ b/gpsprof
@@ -271,7 +271,7 @@ class timeplot(plotter):
set autoscale
set key below
set key title "System clock delta from GPS time"
-plot "-" using 0:(column(3)*1000000000+column(4)-(column(1)*1000000000+column(2))) title "Delta" with impulses
+plot "-" using 0:((column(1)-column(3))*1e9 + (column(2)-column(4))) title "Delta" with impulses
'''
return fmt + self.header() + self.data()