projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
520c758
)
avoid DIVZERO
Gurusamy Sarathy [Mon, 26 Jul 1999 13:28:46 +0000 (13:28 +0000)]
p4raw-id: //depot/perl@3778
utils/dprofpp.PL
patch
|
blob
|
blame
|
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;