summaryrefslogtreecommitdiff
path: root/utils/dprofpp.PL
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-07-26 13:28:46 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-07-26 13:28:46 +0000
commit93683c2163f9bbab667929cc02abed6eb7fec86b (patch)
tree6720cf08406ad4e5a15aa33d5be88f4f6cb63923 /utils/dprofpp.PL
parent520c758a267ecaffc48416a901e0ba5e43b7a2d3 (diff)
downloadperl-93683c2163f9bbab667929cc02abed6eb7fec86b.tar.gz
avoid DIVZERO
p4raw-id: //depot/perl@3778
Diffstat (limited to 'utils/dprofpp.PL')
-rw-r--r--utils/dprofpp.PL2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/dprofpp.PL b/utils/dprofpp.PL
index 0c57940014..ba099c0279 100644
--- 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;