We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06ccffb commit 62eb8ddCopy full SHA for 62eb8dd
smart_report.sh
@@ -128,7 +128,7 @@ if [ $SATA_count -gt 0 ]; then
128
/High_Fly_Writes/{hiFlyWr=$10}
129
/Command_Timeout/{cmdTimeout=$10}
130
END {
131
- testAge=sprintf("%.0f", (onHours - lastTestHours) / 24);
+ testAge=sprintf("%.0f", ((onHours % 65535) - lastTestHours) / 24);
132
if (temp > tempCrit || reAlloc > sectorsCrit || pending > sectorsCrit || offlineUnc > sectorsCrit)
133
device=device " " critSymbol;
134
else if (temp > tempWarn || reAlloc > 0 || pending > 0 || offlineUnc > 0 || testAge > testAgeWarn)
0 commit comments