Browse Source

keep setwork log msg within 80-columns

cl-refactor
Genoil 9 years ago
parent
commit
c276f0dc87
  1. 2
      libethcore/EthashCUDAMiner.cpp
  2. 2
      libethcore/EthashGPUMiner.cpp

2
libethcore/EthashCUDAMiner.cpp

@ -141,7 +141,7 @@ void EthashCUDAMiner::workLoop()
// take local copy of work since it may end up being overwritten by kickOff/pause. // take local copy of work since it may end up being overwritten by kickOff/pause.
try { try {
WorkPackage w = work(); WorkPackage w = work();
cnote << "set work; seed: " << "#" + w.seedHash.hex().substr(0, 8) + ", target: " << "#" + w.boundary.hex().substr(0, 16); cnote << "set work; seed: " << "#" + w.seedHash.hex().substr(0, 8) + ", target: " << "#" + w.boundary.hex().substr(0, 12);
if (!m_miner || m_minerSeed != w.seedHash) if (!m_miner || m_minerSeed != w.seedHash)
{ {
unsigned device = s_devices[index()] > -1 ? s_devices[index()] : index(); unsigned device = s_devices[index()] > -1 ? s_devices[index()] : index();

2
libethcore/EthashGPUMiner.cpp

@ -139,7 +139,7 @@ void EthashGPUMiner::workLoop()
// take local copy of work since it may end up being overwritten by kickOff/pause. // take local copy of work since it may end up being overwritten by kickOff/pause.
try { try {
WorkPackage w = work(); WorkPackage w = work();
cnote << "set work; seed: " << "#" + w.seedHash.hex().substr(0, 8) + ", target: " << "#" + w.boundary.hex().substr(0, 16); cnote << "set work; seed: " << "#" + w.seedHash.hex().substr(0, 8) + ", target: " << "#" + w.boundary.hex().substr(0, 12);
if (!m_miner || m_minerSeed != w.seedHash) if (!m_miner || m_minerSeed != w.seedHash)
{ {
if (s_dagLoadMode == DAG_LOAD_MODE_SEQUENTIAL) if (s_dagLoadMode == DAG_LOAD_MODE_SEQUENTIAL)

Loading…
Cancel
Save