diff options
author | ChaosMarc <ChaosMarc@gmx.de> | 2018-01-08 10:14:43 +0100 |
---|---|---|
committer | ChaosMarc <ChaosMarc@gmx.de> | 2018-01-08 10:14:43 +0100 |
commit | 6d21de7f7d38324e980255ed116d21f86ba740e5 (patch) | |
tree | 0704747b1089459244727abb8be2b97a27a17f91 /xmrstak | |
parent | 7b3f2942d3dafa042fe5b99aec209b200a3071d9 (diff) | |
download | xmr-stak-6d21de7f7d38324e980255ed116d21f86ba740e5.zip xmr-stak-6d21de7f7d38324e980255ed116d21f86ba740e5.tar.gz |
fixed messed up array indexes
Diffstat (limited to 'xmrstak')
-rw-r--r-- | xmrstak/misc/executor.cpp | 8 |
1 files 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"); |