diff --git a/ccminer.cpp b/ccminer.cpp index 3f9e579ee..41b176df7 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\ diff --git a/util.cpp b/util.cpp index b80660580..dfdd2db64 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; }