Skip to content

Commit

Permalink
Merge pull request #60 from randomstuff/master
Browse files Browse the repository at this point in the history
Recursive call filter: allow floating point values and better regex handling
  • Loading branch information
brendangregg committed Aug 3, 2015
2 parents 3930d5b + 54bede2 commit 6c8f715
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stackcollapse-recursive.pl
Expand Up @@ -37,9 +37,9 @@

while(<>) {
chomp;
if(/^(.*)\s([0-9]*)/) {
my @stack = split(/;/, $1);
my $value = $2;
my ($stack_, $value) = (/^(.*)\s+?(\d+(?:\.\d*)?)$/);
if ($stack_) {
my @stack = split(/;/, $stack_);

my @result = ();
my $i;
Expand Down

0 comments on commit 6c8f715

Please sign in to comment.