Merge branch 'master' into develop
This commit is contained in:
commit
231e154236
3 changed files with 9 additions and 9 deletions
|
@ -40,13 +40,13 @@ rapidjson::Value GPUInfo::toJson(rapidjson::MemoryPoolAllocator <rapidjson::CrtA
|
||||||
rapidjson::Value gpuInfo(rapidjson::kObjectType);
|
rapidjson::Value gpuInfo(rapidjson::kObjectType);
|
||||||
|
|
||||||
gpuInfo.AddMember("name", rapidjson::StringRef(m_name.c_str()), allocator);
|
gpuInfo.AddMember("name", rapidjson::StringRef(m_name.c_str()), allocator);
|
||||||
gpuInfo.AddMember("device_idx", m_deviceIdx, allocator);
|
gpuInfo.AddMember("device_idx", static_cast<uint32_t>(m_deviceIdx), allocator);
|
||||||
gpuInfo.AddMember("raw_intensity", m_rawIntensity, allocator);
|
gpuInfo.AddMember("raw_intensity", static_cast<uint32_t>(m_rawIntensity), allocator);
|
||||||
gpuInfo.AddMember("work_size", m_workSize, allocator);
|
gpuInfo.AddMember("work_size", static_cast<uint32_t>(m_workSize), allocator);
|
||||||
gpuInfo.AddMember("max_work_size", m_maxWorkSize, allocator);
|
gpuInfo.AddMember("max_work_size", static_cast<uint32_t>(m_maxWorkSize), allocator);
|
||||||
gpuInfo.AddMember("free_mem", m_freeMem, allocator);
|
gpuInfo.AddMember("free_mem", static_cast<uint32_t>(m_freeMem), allocator);
|
||||||
gpuInfo.AddMember("mem_chunk", m_memChunk, allocator);
|
gpuInfo.AddMember("mem_chunk", m_memChunk, allocator);
|
||||||
gpuInfo.AddMember("comp_mode", m_memChunk, allocator);
|
gpuInfo.AddMember("comp_mode", m_memChunk, allocator);
|
||||||
gpuInfo.AddMember("compute_units", m_memChunk, allocator);
|
gpuInfo.AddMember("compute_units", m_memChunk, allocator);
|
||||||
|
|
||||||
return gpuInfo;
|
return gpuInfo;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"background": false, // true to run the cc-server in the background (no console)
|
"background": false, // true to run the cc-server in the background (no console)
|
||||||
"colors": true, // false to disable colored output
|
"colors": true, // false to disable colored output
|
||||||
"log-file": "server.log", // log all output to a file
|
"log-file": null, // log all output to a file
|
||||||
"syslog": false, // use system log for output messages
|
"syslog": false, // use system log for output messages
|
||||||
"cc-server": {
|
"cc-server": {
|
||||||
"port": 3344, // port the CC Server will listens on
|
"port": 3344, // port the CC Server will listens on
|
||||||
|
|
|
@ -98,5 +98,5 @@ void FileLog::write(char *data, size_t size)
|
||||||
uv_fs_t *req = new uv_fs_t;
|
uv_fs_t *req = new uv_fs_t;
|
||||||
req->data = buf.base;
|
req->data = buf.base;
|
||||||
|
|
||||||
uv_fs_write(uv_default_loop(), req, m_file, &buf, 1, 0, FileLog::onWrite);
|
uv_fs_write(uv_default_loop(), req, m_file, &buf, 1, -1, FileLog::onWrite);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue