Debug simulator

This commit is contained in:
Loic Guegan 2019-04-25 09:00:11 +02:00
parent 1da73fb609
commit 1399886f4d
10 changed files with 3232 additions and 1256 deletions

View file

@ -18,7 +18,7 @@ BEGIN {
}
# For WIFI ns-3 energy model
/Node [0-9]+ consumes/ {
/Node -?[0-9]+ consumes/ {
gsub("J","",$4) # Remove trailling Joule symbol
if (!($2 in energy)){
energyWIFI[$2]=$4
@ -52,7 +52,7 @@ END {
}
# CSV output
print("node,energy")
print("nodeId,energy")
for(key in overallEnergy){
print(key "," overallEnergy[key])
}