Make sure clients get the initial load information.

This commit is contained in:
JoelKatz
2012-12-27 16:54:11 -08:00
parent 33aee3705a
commit 3a673654b6
2 changed files with 3 additions and 1 deletions

View File

@@ -1444,6 +1444,9 @@ bool NetworkOPs::subServer(InfoSub* ispListener, Json::Value& jvResult)
getRand(uRandom.begin(), uRandom.size());
jvResult["random"] = uRandom.ToString();
jvResult["server_status"] = mNetOps->strOperatingMode();
jvObj["load_base"] = theApp->getFeeTrack().getLoadBase();
jvObj["load_fee"] = theApp->getFeeTrack().getLoadFactor();
return mSubServer.insert(ispListener).second;
}