Update AllocationTrace.h

This commit is contained in:
Nikolai Kochetov 2023-07-20 18:10:56 +02:00 committed by Nikolai Kochetov
parent fa06056fa2
commit 5cc9600bbf

View File

@ -12,7 +12,7 @@ struct AllocationTrace
ALWAYS_INLINE void onAlloc(void * ptr, size_t size) const
{
if (likely(sample_probability < 0))
if (likely(sample_probability <= 0))
return;
onAllocImpl(ptr, size);
@ -20,7 +20,7 @@ struct AllocationTrace
ALWAYS_INLINE void onFree(void * ptr, size_t size) const
{
if (likely(sample_probability < 0))
if (likely(sample_probability <= 0))
return;
onFreeImpl(ptr, size);