1
0
mirror of https://github.com/GOSTSec/poolserver synced 2025-01-14 08:47:53 +00:00

Fix vardiff

This commit is contained in:
Intel 2014-05-05 18:34:40 -04:00
parent d097a4b49e
commit 282158a1db
2 changed files with 3 additions and 3 deletions

View File

@ -133,8 +133,6 @@ namespace Stratum
void _OnAccept(ClientPtr client, const boost::system::error_code& error)
{
_StartAccept();
if (!error) {
if (client->Start()) {
_clients.insert(client);
@ -143,6 +141,8 @@ namespace Stratum
} else {
sLog.Debug(LOG_STRATUM, "Failed to accept stratum client");
}
_StartAccept();
}
private:

View File

@ -33,7 +33,7 @@ namespace Stratum
_shares.pop_front();
}
uint32 interval = std::min(curTime - _startTime, uint64(sConfig.Get<uint32>("RetargetTimeBuffer")));
uint32 interval = sConfig.Get<uint32>("RetargetTimeBuffer");
// Calculate shares/min
double speed = double(_shares.size()*60) / double(interval);