Only update pool and algo when its not donating
This commit is contained in:
parent
f674dd47d4
commit
3cfb65dead
2 changed files with 43 additions and 28 deletions
|
@ -247,9 +247,10 @@ void xmrig::Network::onUpdateRequest(ClientStatus& clientStatus)
|
|||
clientStatus.setHashesTotal(m_state.total);
|
||||
clientStatus.setAvgTime(m_state.avgTime());
|
||||
|
||||
clientStatus.setCurrentPool(m_state.pool);
|
||||
|
||||
clientStatus.setCurrentAlgoName(m_strategy->client()->job().algorithm().name());
|
||||
if (!m_donate || !m_donate->isActive()) {
|
||||
clientStatus.setCurrentPool(m_state.pool);
|
||||
clientStatus.setCurrentAlgoName(m_strategy->client()->job().algorithm().name());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue