Commit 711de7c6 authored by Jan Koester's avatar Jan Koester
Browse files

test

parent f6303321
Loading
Loading
Loading
Loading
+3 −2
Changes for include/storaged/api.h: 3 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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
+1 −1
Changes for src/smart.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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);