mirror of
https://github.com/gaoyifan/china-operator-ip.git
synced 2025-07-13 21:02:37 +08:00
fix IP counting
This commit is contained in:
parent
6762000f19
commit
33b6e6a292
@ -52,8 +52,8 @@ while read file; do
|
||||
(
|
||||
sum=0
|
||||
while read n; do
|
||||
s=$((32 - ${n}))
|
||||
sum=$(($sum + 1<<$s))
|
||||
((s=32-n))
|
||||
((sum+=1<<s))
|
||||
done
|
||||
echo $sum
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user