[Git][NTPsec/ntpsec][master] Deleted 1 commit: Be silent when no cputemp file.

Gary E. Miller gitlab at mg.gitlab.com
Fri Aug 19 19:57:05 UTC 2016


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


WARNING: The push did not contain any new commits, but force pushed to delete the commits and changes below.


Deleted commits:
3a26f339 by Gary E. Miller at 2016-08-19T12:56:52-07:00
Be silent when no cputemp file.

- - - - -


1 changed file:

- ntpstats/ntpviz


Changes:

=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -76,12 +76,15 @@ plot \
         "Generate GNUPLOT code graphing local cpu temp statistics"
         sitename = self.sitename
         lines = [line + '\n' for line in getattr(self, "cputemp")]
+        if not lines:
+            return ''
+
         plot_template = NTPViz.Common + """\
 set title "%(sitename)s: Local CPU Temp"
 set ytics format "@1.1f °C" nomirror textcolor rgb '#0060ad'
 set style line 1 lc rgb '#0060ad' lt 1 lw 1 pt 7 ps 0   # --- blue
 plot \
- "-" using 1:($3) title "CPU temp" with linespoints ls 1
+ "-" using 1:3 title "CPU temp" with linespoints ls 1
 """ % locals()
         return plot_template.replace('@', '%')  \
             + "".join(lines)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3a26f339b18fa12deb96c293b89b2784996fce75
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160819/4e89b76f/attachment.html>


More information about the vc mailing list