summaryrefslogtreecommitdiff
path: root/contrib/ntpshmviz
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-09-21 18:09:18 -0700
committerGary E. Miller <gem@rellim.com>2018-09-21 18:09:18 -0700
commit31deebb97871d6e72f7fc048033a1f7e4fadc586 (patch)
tree78a95740188695618879920e19d76adb066050f6 /contrib/ntpshmviz
parentc1e5ab5e919d84a9da77b896522f0cfa1ac1f215 (diff)
downloadgpsd-31deebb97871d6e72f7fc048033a1f7e4fadc586.tar.gz
ntpshmviz: pep8 tweaks
Diffstat (limited to 'contrib/ntpshmviz')
-rwxr-xr-xcontrib/ntpshmviz2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/ntpshmviz b/contrib/ntpshmviz
index 7831bfa3..dab9ae0a 100755
--- a/contrib/ntpshmviz
+++ b/contrib/ntpshmviz
@@ -23,6 +23,7 @@ except:
gps_version = '3.18-dev'
+
class ntpOffset:
def __init__(self, stream):
# get the data
@@ -101,6 +102,7 @@ class ntpOffset:
self.line_counts[record[1]] += 1
stream.close()
+
if __name__ == "__main__":
if (len(sys.argv) >= 2):
if (sys.argv[1] == "-V" or sys.argv[1] == "--version"):