Author: gisle.aas
Date: Sat Oct 25 08:05:04 2008
New Revision: 548
Modified:
trunk/bin/nytprofhtml
Log:
Failed to consistently convert '1 times' to 'once'.
It failed when the current function was called from other places
10 or more times. Fixes up r545.
Modified: trunk/bin/nytprofhtml
==============================================================================
--- trunk/bin/nytprofhtml (original)
+++ trunk/bin/nytprofhtml Sat Oct 25 08:05:04 2008
@@ -307,7 +307,7 @@
sprintf q{# %*s times%s%s at <a
href="%s#%d">line %d</a> of %s%s},
length($max_calls), $count, $times,
$subname, "$href.html", $line, $line,
$caller_filename, $avg_time;
- $prologue[-1] =~ s/^# 1 times/# once/; # better English
+ $prologue[-1] =~ s/^(# +)1 times/$1 once/; # better
English
}
}
my $prologue = '';
--~--~---------~--~----~------------~-------~--~----~
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.
Group hosted at: http://groups.google.com/group/develnytprof-dev
Project hosted at: http://perl-devel-nytprof.googlecode.com
CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf
To post, email: [email protected]
To unsubscribe, email: [EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---