summaryrefslogtreecommitdiffstats
path: root/executor.cpp
diff options
context:
space:
mode:
authorfireice-uk <fireice2@o2.pl>2017-01-03 22:59:34 +0000
committerfireice-uk <fireice2@o2.pl>2017-01-03 22:59:34 +0000
commit94ee3da943b2059a691879d846a44017ee643040 (patch)
treeb7b5918c9d25d10e2c0c51fefc332bb9efb27939 /executor.cpp
parentd798531a4c8249130262172d05d9f9534d4fcebb (diff)
downloadxmr-stak-94ee3da943b2059a691879d846a44017ee643040.zip
xmr-stak-94ee3da943b2059a691879d846a44017ee643040.tar.gz
Bugfix #1 - you don't want to do THAT in a single expression.
Diffstat (limited to 'executor.cpp')
-rw-r--r--executor.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/executor.cpp b/executor.cpp
index f6a7b5e..b3333ae 100644
--- a/executor.cpp
+++ b/executor.cpp
@@ -471,10 +471,13 @@ void executor::hashrate_report()
else
output.append("---------------------------\n");
- output.append("Totals: ").append(hps_format(fTotal[0], num, sizeof(num))).
- append(hps_format(fTotal[1], num, sizeof(num))).
- append(hps_format(fTotal[2], num, sizeof(num))).append(" H/s\nHighest: ").
- append(hps_format(fHighestHps, num, sizeof(num))).append(" H/s\n");
+ output.append("Totals: ");
+ output.append(hps_format(fTotal[0], num, sizeof(num)));
+ output.append(hps_format(fTotal[1], num, sizeof(num)));
+ output.append(hps_format(fTotal[2], num, sizeof(num)));
+ output.append(" H/s\nHighest: ");
+ output.append(hps_format(fHighestHps, num, sizeof(num)));
+ output.append(" H/s\n");
fputs(output.c_str(), stdout);
}
OpenPOWER on IntegriCloud