wlan-latdist

来自「柯老师网站上找到的」· 代码 · 共 23 行

TXT
23
字号
#!/bin/tcsh## works on a latency file produced by wlan-lat# outputs cummulative % of packets below increasing# latency thresholdsif ( $#argv != 2 ) then  echo usage:  echo "      " $0 \<scenario\> \<flow id\>  exit 1endifset scenario = $1set flow = $2set latfile = $scenario.$flow.latset distfile = $scenario.$flow.latdistrm -f $distfileset total = `wc -l $latfile | gawk '{ print $1; }'`gawk '{ print $2; }' $latfile | sort -g | gawk -v total=$total '{ print $1, (++i)*100.0/total; }' > $distfile

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?