X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/e846a9dbc8ec5e9f5e05b2cf2c489e3cb2921eb7..b4391fa1cfad2af65474a95234401be106295507:/extract.pl?ds=sidebyside diff --git a/extract.pl b/extract.pl index c3414ee..2862fe9 100755 --- a/extract.pl +++ b/extract.pl @@ -8,8 +8,8 @@ my $flt = '[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?'; my $pflt = "($flt)"; my $prefix = '^\[([^: ]+)(?::loba:\(\d+\))? ' . $pflt . '\] \[proc/INFO\] '; my $initmatch = $prefix . 'Initial load: ' . $pflt; -my $finalmatch = $prefix . 'Final load after (\d+):(\d+) iterations: ' . $pflt;; -my $plainmatch = $prefix . '\((\d+):(\d+)\) current load: ' . $pflt; +my $finalmatch = $prefix . 'Final load after (\d+):(\d+):(\d+) iterations: ' . $pflt;; +my $plainmatch = $prefix . '\((\d+):(\d+):(\d+)\) current load: ' . $pflt; my %alldata = (); @@ -21,7 +21,7 @@ while (<>) { time => $2, lb => $3, comp => $4, - load => $5, + load => $6, }; # print STDERR "PUSH $host $data->{time} $data->{load} (plain/final)\n"; push @{$alldata{$host}}, $data;