Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last Test Age incorrect when power on time >65535 hours #30

Open
hkorth opened this issue Jul 4, 2021 · 1 comment
Open

Last Test Age incorrect when power on time >65535 hours #30

hkorth opened this issue Jul 4, 2021 · 1 comment

Comments

@hkorth
Copy link

hkorth commented Jul 4, 2021

The "Last Test Age (days)" is reported incorrectly in the SMART report table when the power on time >65535 hours. This seems to be because the life time hours reported by smartctl test table is a 16 bit value and rolls over at 65536 while the power on time does not. So math goes bad. This seems to be a limitation on smartctl. Perhaps there is not much one can do about this other than assuming that the most recent test is more recent than 65535 hours and then subtract multiple of this from the power on time and use the remainder.

@dak180
Copy link

dak180 commented Jan 10, 2023

Does this work in #28?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants