summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;