📄 drop.awk
字号:
BEGIN { fsDrops = 0; otherDrops = 0;}($2 >= startTime && $2 <= endTime) { op = $1; time = $2; src = $9; dst = $10; if (match(src,"^0\.") && $1 == "+") { numFs++; } if (numFs > 0 && op == "d") { if (match(src,"^0\.")) fsDrops++; else otherDrops++; } if (match(src,"^0\.") && ($1 == "-" || $1 == "d")) numFs--;}END { print otherDrops, fsDrops;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -