Skip to content
Snippets Groups Projects
Commit 44373bd5 authored by Cyrille Béraud's avatar Cyrille Béraud
Browse files

python/scanner: add ip number on the plot

parent e00c8e95
Branches
Tags
No related merge requests found
......@@ -166,6 +166,8 @@ def restart(arg):
collection = None
points = []
not_found = []
infos = [ringx.text(1.2, -0.8, ""),
ringx.text(1.2, -0.9, "")]
def generate_set():
node_ipv4 = {}
......@@ -227,6 +229,10 @@ def update_plot():
fig.dpi, 6, sizes=(10,), facecolors=colors,
offsets = xys, transOffset = ringx.transData))
node_ip4s, node_ip6s = generate_set()
infos[0].set_text("{} different IPv4s".format(len(node_ip4s)))
infos[1].set_text("{} different IPv6s".format(len(node_ip6s)))
if run:
# start first step
start_h = InfoHash()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment