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