backend: drop bench dups logs + balances workaround

This commit is contained in:
Tanguy Pruvot 2017-03-17 17:48:11 +01:00
parent ef1cd062e1
commit 6b91caa27b
2 changed files with 6 additions and 1 deletions

View file

@ -25,7 +25,7 @@ function BenchUpdateChips()
array(':vid'=>$bench->vendorid, ':client'=>$bench->client, ':os'=>$bench->os, ':drv'=>$bench->driver,':thr'=>$bench->throughput,':uid'=>$bench->userid)
);
if ($dups > 10) {
debuglog("bench: {$bench->device} ignored ($dups records already present)");
//debuglog("bench: {$bench->device} ignored ($dups records already present)");
$bench->delete();
continue;
}

View file

@ -240,6 +240,11 @@ function BackendCoinsUpdate()
}
$coin->save();
if ($coin->available < 0) {
// can happen after a payout (waiting first confirmation)
BackendUpdatePoolBalances($coin->id);
}
// debuglog(" end $coin->name");
}