From: Raphael Couturier Date: Wed, 28 Sep 2011 12:38:58 +0000 (+0200) Subject: Update extract.pl. X-Git-Tag: exp_20120216~33 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/2e70ca1b25f409c6755cd7c4b4709aacd60afdf6?ds=sidebyside Update extract.pl. --- 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;