Permalink
Browse files

Simplify pad calculation

  • Loading branch information...
1 parent b84cdf3 commit 7eeb7abbc8b60a25e8132a56dc5edb5cd72644bd @msantos committed May 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/packet.erl
View
@@ -264,7 +264,7 @@ macaddress(Socket, Dev) ->
_/binary>>} = procket:ioctl(Socket,
?SIOCGIFHWADDR,
list_to_binary([
- Dev, <<0:((15*8) - (length(Dev)*8)), 0:8, 0:128>>
+ Dev, <<0:((15 - length(Dev))*8), 0:8, 0:128>>
])),
{SM1,SM2,SM3,SM4,SM5,SM6}.

0 comments on commit 7eeb7ab

Please sign in to comment.