From 2e70ca1b25f409c6755cd7c4b4709aacd60afdf6 Mon Sep 17 00:00:00 2001 From: Raphael Couturier Date: Wed, 28 Sep 2011 14:38:58 +0200 Subject: [PATCH] Update extract.pl. --- extract.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5