mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add historical ledger fetches per minute to get_counts
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include <BeastConfig.h>
|
||||
#include <ripple/app/data/DatabaseCon.h>
|
||||
#include <ripple/app/ledger/AcceptedLedger.h>
|
||||
#include <ripple/app/ledger/InboundLedgers.h>
|
||||
#include <ripple/basics/UptimeTimer.h>
|
||||
#include <ripple/nodestore/Database.h>
|
||||
|
||||
@@ -69,6 +70,8 @@ Json::Value doGetCounts (RPC::Context& context)
|
||||
|
||||
ret[jss::write_load] = app.getNodeStore ().getWriteLoad ();
|
||||
|
||||
ret[jss::historical_perminute] = static_cast<int>(
|
||||
app.getInboundLedgers().fetchRate());
|
||||
ret[jss::SLE_hit_rate] = app.getSLECache ().getHitRate ();
|
||||
ret[jss::node_hit_rate] = app.getNodeStore ().getCacheHitRate ();
|
||||
ret[jss::ledger_hit_rate] = app.getLedgerMaster ().getCacheHitRate ();
|
||||
|
||||
Reference in New Issue
Block a user