Skip to content

Commit

Permalink
Rename statistics file to -when.txt in netlink.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluhm committed Aug 29, 2024
1 parent 423305c commit d126193
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Netstat.pm
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,12 @@ sub sweep {
sub generate_diff_netstat {
my ($test) = @_;

my $diff = "$test.stats-diff-netstat.log";
my $diff = "$test.stats-netstat-diff.txt";
open(my $fh, '>', $diff)
or die "Open '$diff' for writing failed: $!";
foreach my $opt (qw(m s)) {
my $before = "$test.stats-before-netstat_-$opt.log";
my $after = "$test.stats-after-netstat_-$opt.log";
my $before = "$test.stats-netstat_-$opt-before.txt";
my $after = "$test.stats-netstat_-$opt-after.txt";
-r $before && -r $after
or next;
my $parser;
Expand Down
2 changes: 1 addition & 1 deletion netlink-html.pl
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ sub parse_result_files {
$tv->{message} = $message;
my $logfile = "$file->{dir}/logs/$test.log";
$tv->{logfile} = $logfile if -f $logfile;
my $stats = "$file->{dir}/logs/$test.stats-diff-netstat.log";
my $stats = "$file->{dir}/logs/$test.stats-netstat-diff.txt";
$tv->{stats} = $stats if -f $stats;
$V{$test}{$hk} = [ @values ];
undef @values;
Expand Down
4 changes: 2 additions & 2 deletions netlink.pl
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ sub good {
generate_diff_netstat($test);

my $pass = "PASS";
my $netstat = "$test.stats-diff-netstat.log";
my $netstat = "$test.stats-netstat-diff.txt";

open(my $fh, '<', $netstat) or die("Could not open '$netstat'");
while(<$fh>) {
Expand Down Expand Up @@ -1328,7 +1328,7 @@ sub statistics {
my ($test, $when) = @_;
foreach my $s (@stats) {
my @statcmd = @{$s->{statcmd}};
my $name = "$test.stats-$when-". join("_", @statcmd). ".log";
my $name = "$test.stats-". join("_", @statcmd). "-$when.txt";
open(my $fh, '>', $name)
or die "Open '$name' for writing failed: $!";
defined(my $pid = fork())
Expand Down

0 comments on commit d126193

Please sign in to comment.