Skip to content

Commit 62eb8dd

Browse files
committed
1 parent 06ccffb commit 62eb8dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smart_report.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ if [ $SATA_count -gt 0 ]; then
128128
/High_Fly_Writes/{hiFlyWr=$10}
129129
/Command_Timeout/{cmdTimeout=$10}
130130
END {
131-
testAge=sprintf("%.0f", (onHours - lastTestHours) / 24);
131+
testAge=sprintf("%.0f", ((onHours % 65535) - lastTestHours) / 24);
132132
if (temp > tempCrit || reAlloc > sectorsCrit || pending > sectorsCrit || offlineUnc > sectorsCrit)
133133
device=device " " critSymbol;
134134
else if (temp > tempWarn || reAlloc > 0 || pending > 0 || offlineUnc > 0 || testAge > testAgeWarn)

0 commit comments

Comments
 (0)