1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

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

This commit is contained in:
Jason Rhinelander 2020-10-09 12:40:04 -03:00 committed by GitHub
parent 3b70b99dd2
commit d10fee87c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}