File s390-tools-sles11sp2-zfcpdbf-fix-timediff.patch of Package s390-tools
Description: zfcpdbf: Messages with round-trip processing timediff problem.
Symptom: zfcpdbf with option --timediff does not show warning message.
Problem: zfcpdbf request messages with a round-trip processing time does
not showing warning message. As per documentation timediff <DIFF>
option should show warning message if time difference between the
time stamp of the response trace record and fsf issued time is
more than <DIFF> value.
Solution: zfcpdbf timediff calculation function has modified to get exact
diff time between fsf issued and timestamp of trace record logged.
Problem-ID: 76115
---
scripts/zfcpdbf | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/scripts/zfcpdbf
+++ b/scripts/zfcpdbf
@@ -41,7 +41,7 @@ our @print_hba_id = ();
our @print_rec_id = ();
our @print_san_id = ();
our $root = "";
-our $timediff = 0;
+our $timediff;
our $def_error = 1;
our $force = 0;
@@ -313,8 +313,8 @@ sub _print_hba_id1
$rec_issued = stck_to_timeval(substr($rec, 0, 16));
- if ($timediff) { # do we want to see delayed responses ?
- my @ts1_arr = split(/[-:]/, $rec->[0]);
+ if (defined $timediff) { # do we want to see delayed responses ?
+ my @t_arr = split(/[-:]/, $rec_received);
my $ts1 = mktime($t_arr[5], $t_arr[4], $t_arr[3],
$t_arr[2], $t_arr[1] - 1, $t_arr[0] - 1900);