Commit ebb77817 authored by Gary E. Miller's avatar Gary E. Miller 💬
Browse files

ntpviz now runs with empty stats.

parent 7a85ab8c
......@@ -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]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment