summaryrefslogtreecommitdiffstats
path: root/xmrstak/misc
diff options
context:
space:
mode:
authorneversay <neversay.misher@gmail.com>2017-11-20 13:29:58 -0500
committerneversay <neversay.misher@gmail.com>2017-11-20 13:29:58 -0500
commit760f5257b41bb50c72e402ea0949b846574cd35d (patch)
tree00254fe3962a5c33a647a8a43635e2e6dfb118e9 /xmrstak/misc
parent79154f76defa627255891888f4dd62453194fc2c (diff)
downloadxmr-stak-760f5257b41bb50c72e402ea0949b846574cd35d.zip
xmr-stak-760f5257b41bb50c72e402ea0949b846574cd35d.tar.gz
Fix indent issue.
Diffstat (limited to 'xmrstak/misc')
-rw-r--r--xmrstak/misc/executor.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/xmrstak/misc/executor.cpp b/xmrstak/misc/executor.cpp
index cccfca7..d04167d 100644
--- a/xmrstak/misc/executor.cpp
+++ b/xmrstak/misc/executor.cpp
@@ -624,7 +624,10 @@ inline const char* hps_format(double h, char* buf, size_t l)
{
if(std::isnormal(h) || h == 0.0)
{
- snprintf(buf, l, " %03.1f", h);
+ if(h < 10.0)
+ snprintf(buf, l, " %03.1f", h);
+ else
+ snprintf(buf, l, " %04.1f", h);
return buf;
}
else
@@ -722,9 +725,9 @@ void executor::hashrate_report(std::string& out)
std::transform(name.begin(), name.end(), name.begin(), ::toupper);
out.append("HASHRATE REPORT - ").append(name).append("\n");
- out.append("| ID | 10s | 60s | 15m |");
+ out.append("| ID | 10s | 60s | 15m |");
if(nthd != 1)
- out.append(" ID | 10s | 60s | 15m |\n");
+ out.append(" ID | 10s | 60s | 15m |\n");
else
out.append(1, '\n');
OpenPOWER on IntegriCloud