Merge remote-tracking branch 'refs/remotes/xmrig/master'
Conflicts: CHANGELOG.md README.md src/App.cpp src/App.h src/Cpu.cpp src/Options.cpp src/Options.h src/crypto/CryptoNight_arm.h src/crypto/CryptoNight_x86.h src/version.h
This commit is contained in:
commit
e9edd366fe
8 changed files with 76 additions and 56 deletions
|
@ -46,7 +46,7 @@ NetworkState::NetworkState() :
|
|||
|
||||
int NetworkState::connectionTime() const
|
||||
{
|
||||
return m_active ? ((uv_now(uv_default_loop()) - m_connectionTime) / 1000) : 0;
|
||||
return m_active ? (int)((uv_now(uv_default_loop()) - m_connectionTime) / 1000) : 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -56,7 +56,7 @@ uint32_t NetworkState::avgTime() const
|
|||
return 0;
|
||||
}
|
||||
|
||||
return (uint32_t) connectionTime() / m_latency.size();
|
||||
return connectionTime() / (uint32_t)m_latency.size();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue