From 38559edb22cea0d11ee13bc66c4962c9df61080e Mon Sep 17 00:00:00 2001 From: wong-fi-hung Date: Fri, 26 May 2023 20:17:46 +0700 Subject: [PATCH 1/2] update hashrate display calculations --- util.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util.cpp b/util.cpp index 42015e9891..2edc5f5a3a 100644 --- a/util.cpp +++ b/util.cpp @@ -217,18 +217,18 @@ void format_hashrate_unit(double hashrate, char *output, const char *unit) { char prefix[2] = { 0, 0 }; - if (hashrate < 10000) { + if (hashrate < 1e3) { // nop } - else if (hashrate < 1e7) { + else if (hashrate < 1e6) { prefix[0] = 'k'; hashrate *= 1e-3; } - else if (hashrate < 1e10) { + else if (hashrate < 1e9) { prefix[0] = 'M'; hashrate *= 1e-6; } - else if (hashrate < 1e13) { + else if (hashrate < 1e12) { prefix[0] = 'G'; hashrate *= 1e-9; } From 9dc9a432171182dc2fba7fec19e6f7344e65ee6b Mon Sep 17 00:00:00 2001 From: wong-fi-hung Date: Sat, 27 May 2023 18:09:04 +0700 Subject: [PATCH 2/2] add --nicehash option in ccminer help text. --- ccminer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ccminer.cpp b/ccminer.cpp index 3f9e579eea..41b176df7e 100644 --- a/ccminer.cpp +++ b/ccminer.cpp @@ -310,6 +310,7 @@ Options:\n\ x17 X17\n\ wildkeccak Boolberry\n\ zr5 ZR5 (ZiftrCoin)\n\ + --nicehash Enable extranonce subscribe with this options.\n\ -d, --devices Comma separated list of CUDA devices to use.\n\ Device IDs start counting from 0! Alternatively takes\n\ string names of your cards like gtx780ti or gt640#2\n\