From a252f5b7f8df7bf171ee79c2a58df30c0bde5ed1 Mon Sep 17 00:00:00 2001 From: "Brian Fraser fraserb@gmail.com" <> Date: Tue, 6 Mar 2012 14:04:47 -0300 Subject: [PATCH] Change a _d() introduced in previous commits to possily avoid crashes --- bin/pt-diskstats | 6 +++--- lib/Diskstats.pm | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/pt-diskstats b/bin/pt-diskstats index 53fbc316..fda531be 100755 --- a/bin/pt-diskstats +++ b/bin/pt-diskstats @@ -2198,9 +2198,9 @@ sub _calc_misc_stats { - $delta_for->{ms_spent_doing_io} / $number_of_ios; } else { - PTDEBUG && _d("IOS_IN_PROGRESS is [$delta_for->{ios_in_progress}], ", - "and the number of ios is [$number_of_ios], going to ", - "use 0 as qtime."); + PTDEBUG && _d("IOS_IN_PROGRESS is [", $delta_for->{ios_in_progress}, + "], and the number of ios is [", $number_of_ios, + "], going to use 0 as qtime."); $extra_stats{qtime} = 0; } $extra_stats{stime} diff --git a/lib/Diskstats.pm b/lib/Diskstats.pm index 5e228554..5b88ec3e 100644 --- a/lib/Diskstats.pm +++ b/lib/Diskstats.pm @@ -824,9 +824,9 @@ sub _calc_misc_stats { - $delta_for->{ms_spent_doing_io} / $number_of_ios; } else { - PTDEBUG && _d("IOS_IN_PROGRESS is [$delta_for->{ios_in_progress}], ", - "and the number of ios is [$number_of_ios], going to ", - "use 0 as qtime."); + PTDEBUG && _d("IOS_IN_PROGRESS is [", $delta_for->{ios_in_progress}, + "], and the number of ios is [", $number_of_ios, + "], going to use 0 as qtime."); $extra_stats{qtime} = 0; } $extra_stats{stime}