From c7e4815d790d7b840747d0bfa1996959c52dd6e7 Mon Sep 17 00:00:00 2001 From: XMRig Date: Mon, 23 Sep 2019 01:27:05 +0700 Subject: [PATCH] Use more JS friendly names. --- src/backend/opencl/wrappers/OclDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/opencl/wrappers/OclDevice.cpp b/src/backend/opencl/wrappers/OclDevice.cpp index f94954033..b10713d47 100644 --- a/src/backend/opencl/wrappers/OclDevice.cpp +++ b/src/backend/opencl/wrappers/OclDevice.cpp @@ -213,8 +213,8 @@ void xmrig::OclDevice::toJSON(rapidjson::Value &out, rapidjson::Document &doc) c out.AddMember("board", board().toJSON(doc), allocator); out.AddMember("name", name().toJSON(doc), allocator); - out.AddMember("bus-id", topology().toString().toJSON(doc), allocator); + out.AddMember("bus_id", topology().toString().toJSON(doc), allocator); out.AddMember("cu", computeUnits(), allocator); - out.AddMember("global-mem", globalMemSize(), allocator); + out.AddMember("global_mem", globalMemSize(), allocator); } #endif