mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Report connection uptime in peer command (RIPD-927)
This commit is contained in:
@@ -294,6 +294,9 @@ PeerImp::json()
|
||||
ret[jss::latency] = static_cast<Json::UInt> (latency.count());
|
||||
}
|
||||
|
||||
ret[jss::uptime] = static_cast<Json::UInt>(
|
||||
std::chrono::duration_cast<std::chrono::seconds>(uptime()).count());
|
||||
|
||||
std::uint32_t minSeq, maxSeq;
|
||||
ledgerRange(minSeq, maxSeq);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user