#365 check_ide_smart: fix smart attribute comparison

release-1.4.15
open
nobody
Bugfix (123)
5
2011-10-25
2011-10-25
No

Each S.M.A.R.T. attribute is compared against a threshold. If it is LESSTHAN that threshold an error is reported.
This patch fixes the problem, that attribute values EQUAL to the threshold are reported as error, which is wrong. Only LESSTHAN the threshold is an error.

For more information see: http://www.hdsentinel.com/smart/index.php

My SSD has some attributes which value and threshold are "0". Without the patch this is reported as errornous.

ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
...
172 Unknown_Attribute 0x0032 000 000 000 Old_age Always - 0
174 Unknown_Attribute 0x0030 000 000 000 Old_age Offline - 13
177 Wear_Leveling_Count 0x0000 000 000 000 Old_age Offline - 0
...

Discussion

  • Ernest Beinrohr

    Ernest Beinrohr - 2012-03-30

    thank you, this works on my SSDs. Without it I get 10 false errors. Would be nice if merged.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks