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

Fixed drive state age with very high number on startup.

parent e0b83e76
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment