7 my $flt = '[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?';
9 my $prefix = '^\[([^: ]+)(?::loba:\(\d+\))? ' . $pflt . '\] \[proc/INFO\] ';
10 my $initmatch = $prefix . 'Initial load: ' . $pflt;
11 my $finalmatch = $prefix . 'Final load after (\d+):(\d+):(\d+) iterations: ' . $pflt;;
12 my $plainmatch = $prefix . '\((\d+):(\d+):(\d+)\) current load: ' . $pflt;
18 if (m{$plainmatch} or m{$finalmatch}) {
26 # print STDERR "PUSH $host $data->{time} $data->{load} (plain/final)\n";
27 push @{$alldata{$host}}, $data;
28 } elsif (m{$initmatch}) {
36 # print STDERR "PUSH $host $data->{time} $data->{load} (init)\n";
37 push @{$alldata{$host}}, $data;
41 foreach my $host (sort(keys %alldata)) {
42 # print STDERR "GOT \"$host\"\n";
43 my $datalist = $alldata{$host};
45 foreach my $data (@{$datalist}) {
46 print "$data->{time} $data->{load}\n";