Fix regexp for disk self-test result log parsing
This commit is contained in:
parent
8fff8ef98a
commit
ad97f90e27
@ -198,7 +198,7 @@ if {[catch {exec /bin/smartctl -l selftest $device} msg]} {
|
||||
set i 0
|
||||
foreach line [split $msg "\n"] {
|
||||
if {[incr i] < 7} continue
|
||||
if {[regexp {\s*#\s*(\d+)\s+((?:[\s-]?\w[:;.,]?)+)\s+((?:[\s-]?\w[:;.,]?)+?)\s+(\d\d?%)\s+(\d+)\s+([\d-]\d*)} \
|
||||
if {[regexp {\s*#\s*(\d+)\s+((?:\s?[\w-][:;.,]?)+)\s+((?:\s?\(?[\w-][:;.,)]?)+?)\s+(\d\d?%)\s+(\d+)\s+([\d-]\d*)} \
|
||||
$line x id name status remaining when lba] == 0} continue
|
||||
puts "<tr>
|
||||
<td>$id</td>
|
||||
|
Loading…
x
Reference in New Issue
Block a user