mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
Add time/uptime/amendment_blocked to server_info (#775)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user