Minor fixes in ClientId column tooltips (Threads/Cores)

This commit is contained in:
BenDroid 2017-11-13 23:15:58 +01:00
parent 7fa4f3203f
commit a5f81b8ae4
2 changed files with 3 additions and 3 deletions

View file

@ -227,7 +227,7 @@ function laststatus( data, type, row ) {
}
function clientInfo( data, type, row ) {
var tooltip = "CPU: " + row.client_status.cpu_brand;
var tooltip = "CPU: " + row.client_status.cpu_brand + " [" + row.client_status.cpu_cores + " cores]";
tooltip += '\n';
tooltip += "CPU Flags: " + (row.client_status.cpu_has_aes ? "AES-NI " : "");
tooltip += (row.client_status.cpu_is_x64 ? "x64" : "");
@ -237,7 +237,7 @@ function clientInfo( data, type, row ) {
tooltip += "Huge Pages: " + (row.client_status.hugepages_available ? " available, " : " unavailable, ");
tooltip += (row.client_status.hugepages_enabled ? "enabled" : "disabled");
tooltip += '\n';
tooltip += "Threads: " + row.client_status.current_threads;
tooltip += "Used Threads: " + row.client_status.current_threads;
tooltip += (row.client_status.double_hash_mode ? " [double hash mode]" :"");
tooltip += '\n';
tooltip += "Client IP: " + row.client_status.external_ip;

View file

@ -82,7 +82,7 @@ CCClient::CCClient(const Options *options)
m_clientStatus.setCpuL2(Cpu::l2());
m_clientStatus.setCpuL3(Cpu::l3());
m_clientStatus.setCurrentThreads(Cpu::threads());
m_clientStatus.setCurrentThreads(m_options->threads());
if (m_options->ccToken() != nullptr) {
m_authorization = std::string("Bearer ") + m_self->m_options->ccToken();