From 6d21de7f7d38324e980255ed116d21f86ba740e5 Mon Sep 17 00:00:00 2001
From: ChaosMarc <ChaosMarc@gmx.de>
Date: Mon, 8 Jan 2018 10:14:43 +0100
Subject: [PATCH] fixed messed up array indexes

---
 xmrstak/misc/executor.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/xmrstak/misc/executor.cpp b/xmrstak/misc/executor.cpp
index 6d06411..055739b 100644
--- a/xmrstak/misc/executor.cpp
+++ b/xmrstak/misc/executor.cpp
@@ -778,12 +778,12 @@ void executor::hashrate_report(std::string& out)
 				out.append(hps_format(fHps[2], num, sizeof(num))).append(1, ' ');
 				
 				fTotal[0] += (std::isnormal(fHps[0])) ? fHps[0] : 0.0;
-				fTotal[0] += (std::isnormal(fHps[1])) ? fHps[1] : 0.0;
-				fTotal[0] += (std::isnormal(fHps[2])) ? fHps[2] : 0.0;
+				fTotal[1] += (std::isnormal(fHps[1])) ? fHps[1] : 0.0;
+				fTotal[2] += (std::isnormal(fHps[2])) ? fHps[2] : 0.0;
 				
 				fTotalCur[0] += (std::isnormal(fHps[0])) ? fHps[0] : 0.0;
-				fTotalCur[0] += (std::isnormal(fHps[1])) ? fHps[1] : 0.0;
-				fTotalCur[0] += (std::isnormal(fHps[2])) ? fHps[2] : 0.0;
+				fTotalCur[1] += (std::isnormal(fHps[1])) ? fHps[1] : 0.0;
+				fTotalCur[2] += (std::isnormal(fHps[2])) ? fHps[2] : 0.0;
 
 				if((i & 0x1) == 1) //Odd i's
 					out.append("|\n");
-- 
GitLab