From a0a2b059b94d906f61cad59bdeaff725c815b067 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Tue, 26 Dec 2023 14:11:31 +0100 Subject: [PATCH] Move netlink command to rightmost column of html table. --- netlink-html.pl | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/netlink-html.pl b/netlink-html.pl index 26f7f109..f5d1eae3 100755 --- a/netlink-html.pl +++ b/netlink-html.pl @@ -143,7 +143,7 @@ sub html_hier_test_head { my ($html, @hiers) = @_; foreach my $hier (@HIERARCHY) { - print $html " \n \n"; + print $html " \n"; print $html " $hier\n"; foreach my $hv (@hiers) { my $title = ""; @@ -155,7 +155,7 @@ sub html_hier_test_head { } print $html " $name\n"; } - print $html " \n"; + print $html " \n \n"; } } @@ -165,8 +165,7 @@ sub html_hier_test_row { (my $testcmd = $test) =~ s/_/ /g; my $testdesc = $TESTDESC{$test} || ""; print $html " \n"; - print $html " $testdesc\n"; - print $html " $testcmd\n"; + print $html " $testdesc\n"; foreach my $hv (@hiers) { my $tv = $td->{$hv->{key}}; my $status = $tv->{status} || ""; @@ -184,6 +183,7 @@ sub html_hier_test_row { print $html " $href$status$enda$stats_href\n"; } + print $html " $testcmd\n"; print $html " \n"; my $vt = $V{$test}; @@ -191,7 +191,7 @@ sub html_hier_test_row { for (my $i = 0; $i < $maxval; $i++) { my $value0 = first { $_ } map { $_->[$i] } values %$vt; my ($name0, $unit0) = ($value0->{name}, $value0->{unit}); - print $html " \n \n"; + print $html " \n"; print $html " $name0\n"; foreach my $hv (@hiers) { my $tv = $td->{$hv->{key}}; @@ -202,7 +202,7 @@ sub html_hier_test_row { print $html " \n"; } } - print $html " \n"; + print $html " \n \n"; } } @@ -234,7 +234,7 @@ sub html_hier_test_row_util { return if ($valsum == 0); print $html " \n"; - print $html " $testdesc\n"; + print $html " $testdesc\n"; foreach my $hv (@hiers) { my ($status, $unit, $iface, $value); for (my $i = 0; $i < $maxval; $i++) { @@ -371,7 +371,7 @@ sub write_html_date_file { my @dates = reverse sort keys %D; print $html "\n"; print $html " \n"; - print $html " \n \n \n"; + print $html " \n \n"; foreach my $date (@dates) { my $passrate = $D{$date}{pass}; $passrate /= $D{$date}{total} if $D{$date}{total}; @@ -379,7 +379,7 @@ sub write_html_date_file { $percent = sprintf("%d%%", 100 * $passrate) if defined $passrate; print $html " \n"; } - print $html " \n \n \n"; + print $html " \n \n \n"; foreach my $date (@dates) { my $short = $D{$date}{short}; my $time = encode_entities($date); @@ -389,12 +389,12 @@ sub write_html_date_file { my $enda = $href ? "" : ""; print $html " \n"; } - print $html " \n \n \n"; + print $html " \n \n \n"; foreach my $date (@dates) { my $num = @{$H{$date}}; print $html " \n"; } - print $html " \n \n \n"; + print $html " \n \n \n"; foreach my $date (@dates) { my $setup = $D{$date}{setup}; my $link = uri_escape($setup, "^A-Za-z0-9\-\._~/"); @@ -402,7 +402,7 @@ sub write_html_date_file { my $enda = $href ? "" : ""; print $html " \n"; } - print $html " \n \n \n"; + print $html " \n \n \n"; foreach my $date (@dates) { my $arch = $D{$date}{arch}; my $dmesg = $D{$date}{dmesg}; @@ -411,7 +411,7 @@ sub write_html_date_file { my $enda = $href ? "" : ""; print $html " \n"; } - print $html " \n \n \n"; + print $html " \n \n \n"; foreach my $date (@dates) { my $hostname = $D{$date}{host}; my $hostlink; @@ -423,7 +423,7 @@ sub write_html_date_file { my $enda = $href ? "" : ""; print $html " \n"; } - print $html " \n"; + print $html " \n \n"; print $html " \n \n"; my @tests = sort { $T{$b}{severity} <=> $T{$a}{severity} || $a cmp $b } @@ -433,8 +433,8 @@ sub write_html_date_file { (my $testcmd = $test) =~ s/_/ /g; my $testdesc = $TESTDESC{$test} || ""; print $html " \n"; - print $html " \n"; - print $html " \n"; + print $html + " \n"; foreach my $date (@dates) { my $tv = $T{$test}{$date}; my $status = $tv->{status} || ""; @@ -447,6 +447,7 @@ sub write_html_date_file { my $enda = $href ? "" : ""; print $html " $href$status$enda\n"; } + print $html " \n"; print $html " \n"; } print $html " \n";
pass rate
pass rate$percent
run at date
run at date$href$short$enda
sub runs
sub runs$num
machine
machine${href}setup info$enda
architecture
architecture$href$arch$enda
host
host$href$hostname$enda
$testdesc$testcmd$testdesc$testcmd