diff options
author | Gary E. Miller <gem@rellim.com> | 2018-09-21 18:09:18 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-09-21 18:09:18 -0700 |
commit | 31deebb97871d6e72f7fc048033a1f7e4fadc586 (patch) | |
tree | 78a95740188695618879920e19d76adb066050f6 /contrib | |
parent | c1e5ab5e919d84a9da77b896522f0cfa1ac1f215 (diff) | |
download | gpsd-31deebb97871d6e72f7fc048033a1f7e4fadc586.tar.gz |
ntpshmviz: pep8 tweaks
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/ntpshmviz | 2 |
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"): |