From 62eb8dd07f54223ce0dc7447934c43543721606b Mon Sep 17 00:00:00 2001 From: SavageCore Date: Wed, 28 Jun 2023 12:45:17 +0100 Subject: [PATCH] Fix #25 --- smart_report.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_report.sh b/smart_report.sh index fa9d990..cd0fff0 100644 --- a/smart_report.sh +++ b/smart_report.sh @@ -128,7 +128,7 @@ if [ $SATA_count -gt 0 ]; then /High_Fly_Writes/{hiFlyWr=$10} /Command_Timeout/{cmdTimeout=$10} END { - testAge=sprintf("%.0f", (onHours - lastTestHours) / 24); + testAge=sprintf("%.0f", ((onHours % 65535) - lastTestHours) / 24); if (temp > tempCrit || reAlloc > sectorsCrit || pending > sectorsCrit || offlineUnc > sectorsCrit) device=device " " critSymbol; else if (temp > tempWarn || reAlloc > 0 || pending > 0 || offlineUnc > 0 || testAge > testAgeWarn)