loop all clients for miner hashrate

This commit is contained in:
Jethro Grassie 2019-04-07 00:20:31 -04:00
parent c3b16dec1a
commit 0be08eddfc
No known key found for this signature in database
GPG Key ID: DE8ED755616565BB
1 changed files with 3 additions and 3 deletions

View File

@ -474,9 +474,9 @@ miner_hr(const char *address)
{
double d = difftime(time(NULL), c->connected_since);
if (d == 0.0)
break;
hr = c->hashes / d;
break;
continue;
hr += c->hashes / d;
continue;
}
}
pthread_mutex_unlock(&mutex_clients);