mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
i hate profiling
This commit is contained in:
parent
9503cc66f0
commit
d5161d3d9a
|
@ -79,7 +79,7 @@ namespace llarp
|
|||
static bool constexpr checkIsGood(uint64_t fails, uint64_t success,
|
||||
uint64_t chances)
|
||||
{
|
||||
if(fails > 0)
|
||||
if(fails > 0 && success > chances)
|
||||
return success / fails > chances;
|
||||
if(success == 0)
|
||||
return fails < chances;
|
||||
|
|
Loading…
Reference in a new issue