Updates to load monitoring and source load tracking.

This commit is contained in:
JoelKatz
2013-03-08 09:48:54 -08:00
parent 2b2e93eef6
commit 7621feda7b
9 changed files with 203 additions and 158 deletions

View File

@@ -43,10 +43,10 @@ void startServer()
if (!theConfig.QUIET)
std::cerr << "Startup RPC: " << jvCommand << std::endl;
LoadSource ls(true);
RPCHandler rhHandler(&theApp->getOPs(), ls);
RPCHandler rhHandler(&theApp->getOPs());
Json::Value jvResult = rhHandler.doCommand(jvCommand, RPCHandler::ADMIN);
int cost = 10;
Json::Value jvResult = rhHandler.doCommand(jvCommand, RPCHandler::ADMIN, cost);
if (!theConfig.QUIET)
std::cerr << "Result: " << jvResult << std::endl;