projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
520c758
)
avoid DIVZERO
author
Gurusamy Sarathy
<gsar@cpan.org>
Mon, 26 Jul 1999 13:28:46 +0000
(13:28 +0000)
committer
Gurusamy Sarathy
<gsar@cpan.org>
Mon, 26 Jul 1999 13:28:46 +0000
(13:28 +0000)
p4raw-id: //depot/perl@3778
utils/dprofpp.PL
patch
|
blob
|
history
diff --git
a/utils/dprofpp.PL
b/utils/dprofpp.PL
index
0c57940
..
ba099c0
100644
(file)
--- a/
utils/dprofpp.PL
+++ b/
utils/dprofpp.PL
@@
-437,6
+437,8
@@
Main: {
#
sub settime {
my( $runtime, $hz ) = @_;
+
+ $hz ||= 1;
if( $opt_r ){
$$runtime = ($rrun_rtime - $overhead - $over_rtime * $total_marks/$over_tests/2)/$hz;