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
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue