Skip to content

Conversation

@brunoerg
Copy link

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 brunoerg marked this pull request as ready for review November 28, 2022 20:54
@brunoerg brunoerg changed the title fix message about the amount of addresses changes fix message about the amount of addresses changed Nov 28, 2022
@brunoerg brunoerg force-pushed the 2022-11-diff-improv branch from 94898e4 to f474efb Compare November 28, 2022 21:03
@brunoerg brunoerg force-pushed the 2022-11-diff-improv branch from f474efb to 028a29c Compare November 29, 2022 13:34
@brunoerg brunoerg requested a review from dunxen November 29, 2022 13:41
@dunxen
Copy link

dunxen commented Nov 29, 2022

ACK 028a29c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants