wifi-diag: Plot mcs and retransmit scatter plots.

This commit is contained in:
Ben Greear
2018-10-05 17:09:29 -07:00
parent 674fb72bf1
commit 86ece6c662
4 changed files with 64 additions and 21 deletions

View File

@@ -3,6 +3,9 @@ package Packet;
use warnings;
use strict;
use bignum;
use bigint;
sub new {
my $class = shift;
my %options = @_;
@@ -96,7 +99,7 @@ sub append {
($ln =~ /^\s*Data Rate: (.*)/)) {
my $dr = $1;
if ($dr =~ /(\S+) Mb/) {
$self->{datarate} = $1 * 1000000;
$self->{datarate} = $1;
}
else {
print "ERROR: Unknown datarate: $dr for frame: " . $self->frame_num() . "\n";