From 31deebb97871d6e72f7fc048033a1f7e4fadc586 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Fri, 21 Sep 2018 18:09:18 -0700 Subject: ntpshmviz: pep8 tweaks --- contrib/ntpshmviz | 2 ++ 1 file changed, 2 insertions(+) (limited to 'contrib') 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"): -- cgit v1.2.1