Report the number of "backed up" node writes in get_counts.

This commit is contained in:
JoelKatz
2013-05-14 10:31:26 -07:00
parent 7855c4d642
commit 794469fddb
3 changed files with 16 additions and 1 deletions

View File

@@ -2317,6 +2317,8 @@ Json::Value RPCHandler::doGetCounts(Json::Value jvRequest, int& cost, ScopedLock
if (dbKB > 0)
ret["dbKBTransaction"] = dbKB;
ret["write_load"] = theApp->getHashedObjectStore().getWriteLoad();
std::string uptime;
int s = upTime();
textTime(uptime, s, "year", 365*24*60*60);