diskmonitor icon indicating copy to clipboard operation
diskmonitor copied to clipboard

Display when last test has run

Open jtyr opened this issue 4 years ago • 1 comments

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.

jtyr avatar Aug 24 '20 08:08 jtyr

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

papylhomme avatar Sep 03 '20 08:09 papylhomme