Skip to content

Commit 9663185

Browse files
reformat positioned output with 5 or more gpus
1 parent 44bc0c9 commit 9663185

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

ethminer/MinerAux.h

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,16 +719,26 @@ class MinerCLI
719719
void positionedOutput(OperationMode _opMode, GenericFarm<EthashProofOfWork> &f, Timer lastBlockTime, uint64_t tokenBalance,
720720
uint64_t _difficulty, h256 _target)
721721
{
722+
int y = 2;
722723
f.hashRates().update();
723-
LogXY(1, 1) << "Rates:" << f.hashRates() << " | Temp: " << f.getMinerTemps() << " | Fan: " << f.getFanSpeeds() << " ";
724+
if (f.minerCount() <= 4)
725+
{
726+
LogXY(1, 1) << "Rates:" << f.hashRates() << " | Temp: " << f.getMinerTemps() << " | Fan: " << f.getFanSpeeds() << " ";
727+
}
728+
else
729+
{
730+
LogXY(1, 1) << "Rates:" << f.hashRates() << " ";
731+
LogXY(1, 2) << "Temp: " << f.getMinerTemps() << " | Fan: " << f.getFanSpeeds() << " ";
732+
y = 3;
733+
}
724734
if (_opMode == OperationMode::Solo)
725735
{
726-
LogXY(1, 2) << "Block #: " << f.currentBlock << " | Block time: " << elapsedSeconds(lastBlockTime)
736+
LogXY(1, y) << "Block #: " << f.currentBlock << " | Block time: " << elapsedSeconds(lastBlockTime)
727737
<< " | Solutions: " << f.getSolutionStats().getAccepts() << " | Tokens: " << tokenBalance << " ";
728738
}
729739
else
730740
{
731-
LogXY(1, 2) << "Difficulty: " << _difficulty << " | Shares: " << f.getSolutionStats().getAccepts() << " | Tokens: " << tokenBalance << " ";
741+
LogXY(1, y) << "Difficulty: " << _difficulty << " | Shares: " << f.getSolutionStats().getAccepts() << " | Tokens: " << tokenBalance << " ";
732742
}
733743
}
734744

tokenminer.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
; RPCPort=8545
1919

2020
Host=
21-
RPCPort=
21+
RPCPort=8586
2222

2323
;--------------------------------------------------------
2424
[Node2]

0 commit comments

Comments
 (0)