Browse Source

Performance improvement in controller.

Adam Ierymenko 8 years ago
parent
commit
cd050b3423
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controller/EmbeddedNetworkController.cpp

+ 1 - 1
controller/EmbeddedNetworkController.cpp

@@ -1076,8 +1076,8 @@ unsigned int EmbeddedNetworkController::handleControlPlaneHttpPOST(
 		testRec["clock"] = now;
 		testRec["clock"] = now;
 		testRec["uptime"] = (now - _startTime);
 		testRec["uptime"] = (now - _startTime);
 		testRec["content"] = b;
 		testRec["content"] = b;
-		_db.put("pong",testRec);
 		responseBody = OSUtils::jsonDump(testRec);
 		responseBody = OSUtils::jsonDump(testRec);
+		_db.writeRaw("pong",responseBody);
 		responseContentType = "application/json";
 		responseContentType = "application/json";
 		return 200;
 		return 200;