Loading include/storaged/api.h +3 −2 Changes for include/storaged/api.h: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -94,8 +94,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * self_test_supported, self_test? (passed|failed|aborted| * interrupted|running|none), self_test_remaining? (% while * running), short_test_minutes?, long_test_minutes?, read_at? (unix * time of the values), problem? (why there are none), warning * (repeated: what is wrong, in the call's language) * time of the values, when they are an earlier reading), problem? * (why there are none), warning (repeated: what is wrong, in the * call's language) * GetSmart {disk, wake?} -> the same for one disk, then per ATA * attribute: attr (id), name, value, worst, threshold, raw, prefail, * failing (now|past|no); wake: read a drive in standby too Loading src/smart.cpp +1 −1 Changes for src/smart.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -626,7 +626,7 @@ void addDrive(Result &r, const blk::Dev &d, const std::pair<Fields, std::string> r.add("size", (long long)d.bytes); Fields f = read.first; bool asleep = get(f, "asleep") == "yes"; time_t at = time(nullptr); time_t at = 0; // set only for an earlier reading: a live one is now if (asleep || !read.second.empty()) { // standby or not answering: the last full reading auto c = cache().find(d.name); Loading Loading
include/storaged/api.h +3 −2 Changes for include/storaged/api.h: 3 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -94,8 +94,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * self_test_supported, self_test? (passed|failed|aborted| * interrupted|running|none), self_test_remaining? (% while * running), short_test_minutes?, long_test_minutes?, read_at? (unix * time of the values), problem? (why there are none), warning * (repeated: what is wrong, in the call's language) * time of the values, when they are an earlier reading), problem? * (why there are none), warning (repeated: what is wrong, in the * call's language) * GetSmart {disk, wake?} -> the same for one disk, then per ATA * attribute: attr (id), name, value, worst, threshold, raw, prefail, * failing (now|past|no); wake: read a drive in standby too Loading
src/smart.cpp +1 −1 Changes for src/smart.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -626,7 +626,7 @@ void addDrive(Result &r, const blk::Dev &d, const std::pair<Fields, std::string> r.add("size", (long long)d.bytes); Fields f = read.first; bool asleep = get(f, "asleep") == "yes"; time_t at = time(nullptr); time_t at = 0; // set only for an earlier reading: a live one is now if (asleep || !read.second.empty()) { // standby or not answering: the last full reading auto c = cache().find(d.name); Loading