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

Display when last test has run #27

Open
jtyr opened this issue Aug 24, 2020 · 1 comment
Open

Display when last test has run #27

jtyr opened this issue Aug 24, 2020 · 1 comment

Comments

@jtyr
Copy link

jtyr commented Aug 24, 2020

It would be nice to see how long ago the last test has run and how long it took to run. This information should be visible in the app UI as well as in the widget UI. It can be deducted from the smartctl -a output:

...
Extended self-test routine
recommended polling time: 	 ( 267) minutes.
...
  9 Power_On_Hours          0x0032   051   051   000    Old_age   Always       -       36207
...
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%     36190         -
...

From the above, we can produce the following output:

Last test (extended): 17 LifeTime hours ago, took 267 minutes

Where the 17 hours is the difference between the LifeTime(hours) and Power_On_Hours.

@papylhomme
Copy link
Owner

Hello, looking into this but I'm not sure I can implement it. The main issue is this application doesn't user smartmontools at all but instead rely on libatasmart via UDisks2.

I've quickly checked their API and the information is not exported (or at least not readily). I'll investigate this further

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