Skip to content

Commit

Permalink
backend: drop bench dups logs + balances workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Mar 17, 2017
1 parent ef1cd06 commit 6b91caa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/yaamp/core/backend/bench.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
5 changes: 5 additions & 0 deletions web/yaamp/core/backend/coins.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");

}
Expand Down

0 comments on commit 6b91caa

Please sign in to comment.