Commit c6bfbe40 authored by Michael Völske's avatar Michael Völske

update check_dimms

parent ce5ac1cb
......@@ -46,7 +46,7 @@ BEGIN {
/^DIMM [AB][0-9]+ *N\\/A/ { N_EMPTY+=1 }
/^DIMM [AB][0-9]+ *Ok/ { N_OK+=1 }
/^DIMM [AB][0-9]+ *Warning/ {
/^DIMM [AB][0-9]+ *(Warn|Fail)/ {
WARNINGS[N_WARNINGS] = $2
N_WARNINGS+=1
}
......@@ -58,9 +58,11 @@ END {
}
d = N_SLOTS - N_EMPTY
v = "; " N_SLOTS " slots; " d " installed"
v = v "; " N_OK " OK"
v = v "; "
if (N_OK != d) v = v "\\033[41m"
v = v N_OK " OK\\033[0m"
if (N_WARNINGS > 0) {
v = v "; " N_WARNINGS " warning(s):"
v = v "; " N_WARNINGS " error(s):"
for (p in WARNINGS) {
v = v " " WARNINGS[p]
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment