From 8f9eb8ef2e10872344ecf4281c9a0a0946b00e4c Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 14 Nov 2017 16:12:18 +0000 Subject: change getName to static lc string (sorry psc) --- xmrstak/misc/executor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'xmrstak/misc/executor.cpp') diff --git a/xmrstak/misc/executor.cpp b/xmrstak/misc/executor.cpp index 454d1cf..07ab759 100644 --- a/xmrstak/misc/executor.cpp +++ b/xmrstak/misc/executor.cpp @@ -641,7 +641,10 @@ void executor::hashrate_report(std::string& out) size_t i; auto bType = static_cast(b); - out.append("HASHRATE REPORT - ").append(xmrstak::iBackend::getName(bType)).append("\n"); + std::string name(xmrstak::iBackend::getName(bType)); + std::transform(name.begin(), name.end(), name.begin(), ::toupper); + + out.append("HASHRATE REPORT - ").append(name).append("\n"); out.append("| ID | 10s | 60s | 15m |"); if(nthd != 1) out.append(" ID | 10s | 60s | 15m |\n"); -- cgit v1.1