Show worker hashrate only when autodiff is on

This commit is contained in:
SChernykh 2022-05-15 01:15:21 +02:00
parent 9579be5c7d
commit 37b6457054

View file

@ -477,7 +477,7 @@ void StratumServer::show_workers()
LOGINFO(0, log::pad_right(static_cast<const char*>(c->m_addrString), addr_len + 8)
<< log::pad_right(log::Duration(cur_time - c->m_connectedTime), 20)
<< log::pad_right(((c->m_customDiff != 0) || !m_autoDiff) ? c->m_customDiff : c->m_autoDiff, 20)
<< log::pad_right(log::Hashrate(c->m_autoDiff.lo / AUTO_DIFF_TARGET_TIME, c->m_autoDiff.lo != 0), 15)
<< log::pad_right(log::Hashrate(c->m_autoDiff.lo / AUTO_DIFF_TARGET_TIME, m_autoDiff && (c->m_autoDiff.lo != 0)), 15)
<< (c->m_rpcId ? c->m_customUser : "not logged in")
);
++n;