diff --git a/README.md b/README.md index 56aef919..167c0ecd 100644 --- a/README.md +++ b/README.md @@ -69,8 +69,7 @@ Check the [Coin Configuration](https://github.com/Bendr0id/xmrigCC/wiki/Coin-con **XMRigCC Dashboard** -![Screenshot of XMRigCC Dashboard](https://i.imgur.com/VwJaf26.png) - +![Screenshot of XMRigCC Dashboard](https://imgur.com/UrdTHpM.png) #### Table of contents * [Download](#download) diff --git a/index.html b/index.html index 934a6d3f..29ebd37d 100644 --- a/index.html +++ b/index.html @@ -416,10 +416,10 @@ type: "GET", url: "/admin/getClientLog?clientId=" + clientId, dataType:"json", - success: function(jsonClientLog) { + success: function(data) { var htmlContent = "
" + ""+ - "" + + "" + "
"; $('#minerLog').find('.modal-body').html(htmlContent); @@ -442,8 +442,8 @@ type: "GET", url: "/admin/getClientLog?clientId=" + clientId, dataType:"json", - success: function(jsonClientLog) { - $('#log').val(JSON.stringify(jsonClientLog,undefined, 2)); + success: function(data) { + $('#log').val(data.client_log); }, error: function (data) { setError('Unable to fetch ' + clientId + ' log. - Please make sure it is enabled on the miner!'); diff --git a/src/cc/Service.cpp b/src/cc/Service.cpp index 03a885ff..a12d44be 100644 --- a/src/cc/Service.cpp +++ b/src/cc/Service.cpp @@ -288,7 +288,8 @@ unsigned Service::getClientLog(const std::string& clientId, std::string& resp) data << m_row.c_str() << std::endl; } - respDocument.AddMember("client_log", rapidjson::StringRef(data.str().c_str()), allocator); + std::string log = data.str(); + respDocument.AddMember("client_log", rapidjson::StringRef(log.c_str()), allocator); rapidjson::StringBuffer buffer(0, 4096); rapidjson::Writer writer(buffer);