Updated scripts to new output
This commit is contained in:
parent
cd7bbae9cc
commit
7fcad36c43
2 changed files with 14 additions and 4 deletions
|
@ -22,7 +22,8 @@ while(<>) {
|
|||
if($packettype == 1) {
|
||||
$channel .= "-ack"
|
||||
}
|
||||
|
||||
|
||||
$num_packets_for_channel{$channel}++;
|
||||
$tx_for_channel{$channel} += $tx;
|
||||
$rx_for_channel{$channel} += $rx;
|
||||
$total += $rx + $tx;
|
||||
|
@ -36,8 +37,11 @@ while(<>) {
|
|||
}
|
||||
}
|
||||
|
||||
print "# Columns are:\n";
|
||||
print "# activity tx_dutycycle rx_dutycycle num_packets\n";
|
||||
|
||||
foreach $c (keys %tx_for_channel) {
|
||||
print "$c " . $tx_for_channel{$c}/$total . " " . $rx_for_channel{$c}/$total . "\n";
|
||||
print "$c " . $tx_for_channel{$c}/$total . " " . $rx_for_channel{$c}/$total . " " . $num_packets_for_channel{$c} . "\n";
|
||||
}
|
||||
|
||||
print STDERR "Final / forward = " . $final / $total . "/" . $forward / $total . "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue