More debugging of stats...
This commit is contained in:
parent
15498f6cdc
commit
c9e98abcb6
1 changed files with 1 additions and 1 deletions
|
@ -450,8 +450,8 @@ int main(int argc, char ** argv){
|
|||
if (it->Received() != ""){
|
||||
size_t newlines = it->Received().find("\n\n");
|
||||
while (newlines != std::string::npos){
|
||||
Log("STAT", "Received stats from a buffer");
|
||||
if (!JsonParse.parse(it->Received().substr(0, newlines), Request, false)){
|
||||
Log("STAT", "Received stats from a buffer: "+Request.toStyledString());
|
||||
if (Request.isMember("totals") && Request["totals"].isMember("buffer")){
|
||||
std::string thisbuffer = Request["totals"]["buffer"].asString();
|
||||
Storage["statistics"][thisbuffer]["curr"] = Request["curr"];
|
||||
|
|
Loading…
Add table
Reference in a new issue