mirror of
https://gitlab.com/manzerbredes/paper-lowrate-iot.git
synced 2025-05-01 01:17:46 +00:00
Debug simulator
This commit is contained in:
parent
1da73fb609
commit
1399886f4d
10 changed files with 3232 additions and 1256 deletions
|
@ -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])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue