Start some simulation tests

This commit is contained in:
Loic Guegan 2019-04-25 15:51:05 +02:00
parent 1399886f4d
commit a6e70544bb
37 changed files with 53416 additions and 5509 deletions

View file

@ -2,6 +2,7 @@
BEGIN {
durationECOFEN=0
sum=0
}
# For ECOFEN energy model
@ -20,11 +21,11 @@ BEGIN {
# For WIFI ns-3 energy model
/Node -?[0-9]+ consumes/ {
gsub("J","",$4) # Remove trailling Joule symbol
if (!($2 in energy)){
if (!($2 in energyWIFI)){
energyWIFI[$2]=$4
}
else {
energyWIFI[$2]=$4+energyWIFI[$2]
energyWIFI[$2]+=$4
}
}