mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-31 15:59:27 +00:00
Show worker hashrate only when autodiff is on
This commit is contained in:
parent
9579be5c7d
commit
37b6457054
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ void StratumServer::show_workers()
|
||||||
LOGINFO(0, log::pad_right(static_cast<const char*>(c->m_addrString), addr_len + 8)
|
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(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(((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")
|
<< (c->m_rpcId ? c->m_customUser : "not logged in")
|
||||||
);
|
);
|
||||||
++n;
|
++n;
|
||||||
|
|
Loading…
Reference in a new issue