asmap icon indicating copy to clipboard operation
asmap copied to clipboard

fix message about the amount of addresses changed

Open brunoerg opened this issue 2 years ago • 1 comments

In the case we have 0 IPv4 and/or IPv6 addresses changed when comparing two files, the following line would throw an error (math.log2(0) doesn't make sense):

print("# %i (2^%f) IPv4 addresses changed; %i (2^%f) IPv6 addresses changed" % (ipv4_changed, math.log2(ipv4_changed), ipv6_changed, math.log2(ipv6_changed)))

brunoerg avatar Nov 28 '22 20:11 brunoerg

ACK 028a29c

dunxen avatar Nov 29 '22 13:11 dunxen