Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {count++;other++}
- $1 ~ /^10\..*/ {IP[10]++;other--}
- $1 ~ /^115\.200\..*/ {IP[115.200]++;other--}
- $1 ~ /^172\.22\..*/ {IP[172.22]+=1;other--}
- $1 ~ /^172\.28\..*/ {IP[172.28]+=1;other--}
- $1 ~ /^210\.32.200\..*/ {IP[210.32.200]+=1;other--}
- END { printf("总共\t%i\n",count);
- printf("教学区\t%i\t%s%%\n",IP[10],IP[10]/count*100);
- printf("闪讯\t%i\t%s%%\n",IP[115.200],IP[115.200]/count*100);
- printf("屏峰生活区\t%i\t%s%%\n",IP[172.22],IP[172.22]/count*100);
- printf("朝晖生活区\t%i\t%s%%\n",IP[172.28],IP[172.28]/count*100);
- printf("服务器通讯\t%i\t%s%%\n",IP[210.32.200],IP[210.32.200]/count*100);
- printf("其余外网\t%i\t%s%%\n",other,other/count*100);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement