[Git][NTPsec/ntpsec][master] Offset multiplot is working.

Eric S. Raymond gitlab at mg.gitlab.com
Wed Aug 24 19:59:00 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
5a9aaa7e by Eric S. Raymond at 2016-08-24T15:56:44-04:00
Offset multiplot is working.

- - - - -


1 changed file:

- ntpstats/ntpviz


Changes:

=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -356,8 +356,14 @@ set ytics format "@1.2f us" nomirror textcolor rgb "#0060ad"
 set key bottom right box
 plot \\
 '''
+    # FIXME: We probably need to be more flexible about computing the plot label
+    sitenames = [os.path.basename(os.path.dirname(d)) for d in statsdirs]
     for (i, stats) in enumerate(statlist):
-        plot += '"-" using 1:($2*1000000) title "%s clock offset us" with linespoints, \\\n' % (stats.sitename)
+        plot += '"-" using 1:($2*1000000) title "%s clock offset us" with linespoints, \\\n' % (sitenames[i])
+    plot = plot[:-4] + "\n"
+    for stats in statlist:
+        plot += stats.dump("loopstats") + "e\n"
+    plot = plot[:-2]
     return plot.replace("@", "%")
 
 ntpsec_logo = """



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/5a9aaa7ebe7b252792d1718bdcdfc2b0f1213bda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160824/51b9844e/attachment.html>


More information about the vc mailing list