[Git][NTPsec/ntpsec][master] ntpviz: fix a typos, remove unused plotwrap() function.

Gary E. Miller gitlab at mg.gitlab.com
Tue Oct 18 01:58:04 UTC 2016


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
383527f6 by Gary E. Miller at 2016-10-17T18:56:35-07:00
ntpviz: fix a typos, remove unused plotwrap() function.

- - - - -


1 changed file:

- ntpstats/ntpviz


Changes:

=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -282,18 +282,6 @@ def gnuplot(template, outfile=None):
     proc.stdin.close()
     return proc.wait()
 
-def plotwrap(imagename, image, outfile):
-    "Generate an image and index section for a GNUPLOT section."
-    gnuplot(image, os.path.join(outdir, imagename + ".png"))
-    div_name = imagename.replace('-', ' ')
-    div = '''\
-<div>
-  <h3>%s</h3>
-  <img src='%s.png' alt='%s plot'>
-</div>
-''' % (div_name, imagename.replace(':', '%3A'), div_name)
-    outfile.write(div)
-
 class NTPViz(NTPStats):
     "Class for visualizing statistics from a single server."
     # Python takes single quotes here. Since no % substitution
@@ -1495,7 +1483,7 @@ ntpviz</a>, part of the <a href="https://www.ntpsec.org/">NTPsec project</a>
     os.remove(csv_filename)
     os.rename( csv_filename + ".tmp", csv_filename)
 
-    ow.remove( index_filename)
+    os.remove( index_filename)
     os.rename( index_filename + ".tmp", index_filename)
 
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/383527f69513b82fe889919499ed13fefc0d6fe9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161018/b8639197/attachment.html>


More information about the vc mailing list