replace some insane maths with math that makes sense

This commit is contained in:
Von Random 2016-03-13 02:36:20 +03:00
parent eb3a895bcf
commit 2f44c8984d

View file

@ -9,6 +9,6 @@ for e in range(3, -1, -1):
multiplier = 256 ** e multiplier = 256 ** e
octet = num // multiplier octet = num // multiplier
addr.append(str(octet)) addr.append(str(octet))
num -= octet * multiplier num = num % multiplier
print('.'.join(addr)) print('.'.join(addr))