Skip to content
Snippets Groups Projects
Commit dfe92843 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed drive state age with very high number on startup.

parent c9ead44f
Branches
Tags
No related merge requests found
......@@ -53,7 +53,8 @@ void DriveState::initialize(const std::string & driveName) {
m_payload.set_unloadstarttime(0);
m_payload.set_unmountstarttime(0);
m_payload.set_drainingstarttime(0);
m_payload.set_downorupstarttime(0);
// In the absence of info, we sent down now.
m_payload.set_downorupstarttime(::time(nullptr));
m_payload.set_probestarttime(0);
m_payload.set_cleanupstarttime(0);
m_payload.set_lastupdatetime(0);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment