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:
@@ -54,9 +54,10 @@ class Counters
|
||||
std::atomic_uint64_t internalErrorCounter_;
|
||||
|
||||
std::reference_wrapper<const WorkQueue> workQueue_;
|
||||
std::chrono::time_point<std::chrono::system_clock> startupTime_;
|
||||
|
||||
public:
|
||||
Counters(WorkQueue const& wq) : workQueue_(std::cref(wq)){};
|
||||
Counters(WorkQueue const& wq) : workQueue_(std::cref(wq)), startupTime_{std::chrono::system_clock::now()} {};
|
||||
|
||||
static Counters
|
||||
make_Counters(WorkQueue const& wq)
|
||||
@@ -94,6 +95,9 @@ public:
|
||||
void
|
||||
onInternalError();
|
||||
|
||||
std::chrono::seconds
|
||||
uptime() const;
|
||||
|
||||
boost::json::object
|
||||
report() const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user