From eff3fd9987251209c5781a09d8edbff1e8dbf2a6 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Sun, 4 Dec 2011 21:02:51 +0100 Subject: [PATCH] Fixed another stats bug --- DDV_Controller/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DDV_Controller/main.cpp b/DDV_Controller/main.cpp index 290e9023..49452f0f 100644 --- a/DDV_Controller/main.cpp +++ b/DDV_Controller/main.cpp @@ -450,7 +450,7 @@ int main(int argc, char ** argv){ if (it->Received() != ""){ size_t newlines = it->Received().find("\n\n"); while (newlines != std::string::npos){ - if (!JsonParse.parse(it->Received().substr(0, newlines), Request, false)){ + 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();