Skip to content
Snippets Groups Projects
Commit e7aeb341 authored by Sergey Joseph Ivanov's avatar Sergey Joseph Ivanov
Browse files

often verify is not reported but write and read are there. Assume 0 in this case

parent 3dc2c915
No related branches found
No related tags found
No related merge requests found
......@@ -120,11 +120,18 @@ sub handler {
elsif ($line =~ /^Elements in grown defect list:\s+(.+)$/) {
$smartdata->{"elements_in_defect_list"} = [$1, "i"];
}
elsif ($line =~ /^(read|write|verify):\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\S+)\s+(\d+)$/) {
elsif ($line =~ /^(verify):\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\S+)\s+(\d+)$/) {
print STDERR "$1 $1_errors_corrected $5 $1_errors_uncorrected $8\n";
$smartdata->{"$1_errors_corrected"} = [$5, "i"];
$smartdata->{"$1_errors_uncorrected"} = [$8, "i"];
}
elsif ($line =~ /^(read|write):\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\S+)\s+(\d+)$/) {
print STDERR "$1 $1_errors_corrected $5 $1_errors_uncorrected $8\n";
$smartdata->{"$1_errors_corrected"} = [$5, "i"];
$smartdata->{"$1_errors_uncorrected"} = [$8, "i"];
$smartdata->{"verify_errors_corrected"} = [0, "i"] unless defined($smartdata->{"verify_errors_corrected"});
$smartdata->{"verify_errors_uncorrected"} = [0, "i"] unless defined($smartdata->{"verify_errors_uncorrected"});
}
elsif ($line =~ /^Non-medium error count:\s+(.+)$/) {
$smartdata->{"non_medium_errors"} = [$1, "i"];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment