mirror of
https://gitlab.com/manzerbredes/paper-lowrate-iot.git
synced 2025-05-01 01:17:46 +00:00
Start some simulation tests
This commit is contained in:
parent
1399886f4d
commit
a6e70544bb
37 changed files with 53416 additions and 5509 deletions
20
ns3-simulations/parseDelay.awk
Executable file
20
ns3-simulations/parseDelay.awk
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/awk -f
|
||||
|
||||
BEGIN {
|
||||
delaySum=0
|
||||
delayCount=0
|
||||
}
|
||||
|
||||
/delay =/ {
|
||||
gsub("ns","",$7)
|
||||
gsub("+","",$7)
|
||||
delaySum+=$7
|
||||
delayCount+=1
|
||||
}
|
||||
|
||||
END {
|
||||
if(delayCount>0)
|
||||
print(delaySum/delayCount)
|
||||
else
|
||||
print(0)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue