mirror of
https://github.com/GOSTSec/poolserver
synced 2025-01-14 08:47:53 +00:00
Fix vardiff
This commit is contained in:
parent
d097a4b49e
commit
282158a1db
@ -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:
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user