/code/awk-scripts/ro.awk
AWK | 21 lines | 17 code | 4 blank | 0 comment | 0 complexity | 62867cc5bbfa236aa1779950f3a70aa1 MD5 | raw file
- BEGIN {
- sendLine = 0;
- recvLine = 0;
- errLine = 0;
- }
- $0 ~/^s.* \(REQUEST\)/ {
- sendLine ++ ;
- }
- $0 ~/^s.* \(REPLY\)/ {
- recvLine ++ ;
- }
- $0 ~/^s.* \(ERROR\)/ {
- errLine ++ ;
- }
- END {
- printf "Overhead: %d\n", (sendLine + recvLine + errLine);
- }