[Git][NTPsec/ntpsec][master] ntpviz now runs with empty stats.
Gary E. Miller
gitlab at mg.gitlab.com
Mon Aug 22 21:43:54 UTC 2016
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
ebb77817 by Gary E. Miller at 2016-08-22T14:42:55-07:00
ntpviz now runs with empty stats.
- - - - -
1 changed file:
- ntpstats/ntpviz
Changes:
=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -179,6 +179,9 @@ plot \
peerdict = self.peersplit()
if not peerlist:
peerlist = list(peerdict.keys())
+ if not len( peerlist):
+ sys.stderr.write("ntpviz: WARNING: no peer data to graph\n")
+ return ''
peerlist.sort() # For stability of output
if len(peerlist) == 1:
title += ": "+ peerlist[0]
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ebb7781779b149d09f83365d4d900947fed63b4a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160822/8641038f/attachment.html>
More information about the vc
mailing list