?? genplotlat.awk
字號:
/*compute the latency mean of each <speed, nHops, latency> point*/NR == 2 { speed = $1; hops = $2; lat = $3; samples = 1; }NR > 2 { if( (speed != $1) || (hops != $2) ) { /* print the computed <speed, nHops, latency> point */ printf"%d \t %f\n", hops, lat/samples; /* create a new graph index for gnuplot compatibility */ if(speed != $1) printf"\n\n"; /* reinitialize the variables */ samples = 1; speed = $1; hops = $2; lat = $3; } else { samples ++; lat += $3; } }END { /* print the last row that otherwise wouldn't be printed */ printf"%d \t %f\n", hops, lat/samples; }
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -