From 3bdf7111cef4d59ec21b1872f81f4527b9050722 Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 29 Oct 2019 17:18:46 +0700 Subject: [PATCH] Fixed singular form for threads. --- src/backend/cpu/CpuBackend.cpp | 3 ++- src/backend/cuda/CudaBackend.cpp | 3 ++- src/backend/opencl/OclBackend.cpp | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/backend/cpu/CpuBackend.cpp b/src/backend/cpu/CpuBackend.cpp index 12cd34e58..ddee67683 100644 --- a/src/backend/cpu/CpuBackend.cpp +++ b/src/backend/cpu/CpuBackend.cpp @@ -146,10 +146,11 @@ public: inline void start() { - LOG_INFO("%s use profile " BLUE_BG(WHITE_BOLD_S " %s ") WHITE_BOLD_S " (" CYAN_BOLD("%zu") WHITE_BOLD(" threads)") " scratchpad " CYAN_BOLD("%zu KB"), + LOG_INFO("%s use profile " BLUE_BG(WHITE_BOLD_S " %s ") WHITE_BOLD_S " (" CYAN_BOLD("%zu") WHITE_BOLD(" thread%s)") " scratchpad " CYAN_BOLD("%zu KB"), tag, profileName.data(), threads.size(), + threads.size() > 1 ? "s" : "", algo.l3() / 1024 ); diff --git a/src/backend/cuda/CudaBackend.cpp b/src/backend/cuda/CudaBackend.cpp index 2a2f8ea19..db0d512e3 100644 --- a/src/backend/cuda/CudaBackend.cpp +++ b/src/backend/cuda/CudaBackend.cpp @@ -171,10 +171,11 @@ public: inline void start(const Job &) { - LOG_INFO("%s use profile " BLUE_BG(WHITE_BOLD_S " %s ") WHITE_BOLD_S " (" CYAN_BOLD("%zu") WHITE_BOLD(" threads)") " scratchpad " CYAN_BOLD("%zu KB"), + LOG_INFO("%s use profile " BLUE_BG(WHITE_BOLD_S " %s ") WHITE_BOLD_S " (" CYAN_BOLD("%zu") WHITE_BOLD(" thread%s)") " scratchpad " CYAN_BOLD("%zu KB"), tag, profileName.data(), threads.size(), + threads.size() > 1 ? "s" : "", algo.l3() / 1024 ); diff --git a/src/backend/opencl/OclBackend.cpp b/src/backend/opencl/OclBackend.cpp index c9fef1f91..bbf604438 100644 --- a/src/backend/opencl/OclBackend.cpp +++ b/src/backend/opencl/OclBackend.cpp @@ -168,10 +168,11 @@ public: inline void start(const Job &job) { - LOG_INFO("%s use profile " BLUE_BG(WHITE_BOLD_S " %s ") WHITE_BOLD_S " (" CYAN_BOLD("%zu") WHITE_BOLD(" threads)") " scratchpad " CYAN_BOLD("%zu KB"), + LOG_INFO("%s use profile " BLUE_BG(WHITE_BOLD_S " %s ") WHITE_BOLD_S " (" CYAN_BOLD("%zu") WHITE_BOLD(" thread%s)") " scratchpad " CYAN_BOLD("%zu KB"), tag, profileName.data(), threads.size(), + threads.size() > 1 ? "s" : "", algo.l3() / 1024 );