Don't report a huge negative elapsed time on startup (#1401)

pull/1405/head
Jason Rhinelander 4 years ago committed by GitHub
parent 3b70b99dd2
commit d10fee87c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -682,7 +682,8 @@ namespace llarp
LogInfo(_rc.Age(now), " since we last updated our RC");
LogInfo(_rc.TimeUntilExpires(now), " until our RC expires");
}
LogInfo(now - m_LastStatsReport, " last reported stats");
if (m_LastStatsReport > 0s)
LogInfo(now - m_LastStatsReport, " last reported stats");
m_LastStatsReport = now;
}

Loading…
Cancel
Save