From 87b39f6031b1714bb18f56c8a5c20b7836c46130 Mon Sep 17 00:00:00 2001 From: Keith Nash Date: Sat, 8 Apr 2017 14:28:40 -0500 Subject: [PATCH] Added last test age to warnings --- smart_report.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_report.sh b/smart_report.sh index 7592121..4f42f3a 100644 --- a/smart_report.sh +++ b/smart_report.sh @@ -95,7 +95,7 @@ for drive in $drives; do testAge=sprintf("%.0f", (onHours - lastTestHours) / 24); if (temp > tempCrit || reAlloc > sectorsCrit || pending > sectorsCrit || offlineUnc > sectorsCrit) device=device " " critSymbol; - else if (temp > tempWarn || reAlloc > 0 || pending > 0 || offlineUnc > 0) + else if (temp > tempWarn || reAlloc > 0 || pending > 0 || offlineUnc > 0 || testAge > testAgeWarn) device=device " " warnSymbol; seekErrors=sprintf("%d", seekErrors); totalSeeks=sprintf("%d", totalSeeks);