Add time/uptime/amendment_blocked to server_info (#775)

This commit is contained in:
Alex Kremer
2023-07-14 16:46:10 +01:00
committed by GitHub
parent b83d7478ef
commit b8705ae086
10 changed files with 139 additions and 12 deletions

View File

@@ -97,6 +97,12 @@ Counters::onInternalError()
++internalErrorCounter_;
}
std::chrono::seconds
Counters::uptime() const
{
return std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now() - startupTime_);
}
boost::json::object
Counters::report() const
{