This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52d4d31
)
<patch> avoid division by 0 in Benchmark.pm
author
Stephane Payrard
<properler@freesurf.fr>
Mon, 24 Jan 2000 16:15:38 +0000
(17:15 +0100)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 24 Jan 2000 14:14:23 +0000
(14:14 +0000)
To: Gurusamy Sarathy <gsar@ActiveState.com>
Cc: perl5-porters@perl.org
Message-ID: <
20000124161538
.A995@freesurf.fr>
p4raw-id: //depot/cfgperl@4880
lib/Benchmark.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Benchmark.pm
b/lib/Benchmark.pm
index
487ddd5
..
7cb78eb
100644
(file)
--- a/
lib/Benchmark.pm
+++ b/
lib/Benchmark.pm
@@
-435,7
+435,7
@@
sub timestr {
$r,$pu,$ps,$pt) if $style eq 'noc';
$s=sprintf("%2d wallclock secs (%$f cusr + %$f csys = %$f CPU)",
$r,$cu,$cs,$ct) if $style eq 'nop';
- $s .= sprintf(" @ %$f/s (n=$n)", $n / ( $pu + $ps )) if $
n
;
+ $s .= sprintf(" @ %$f/s (n=$n)", $n / ( $pu + $ps )) if $
pu + $ps
;
$s;
}