Handle negative values as zeroes in statistics log buckets
This commit is contained in:
parent
0e813c3307
commit
339de6b218
1 changed files with 1 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ namespace psemek::util
|
|||
void statistics_log_bucket<T>::push(T const & value, std::size_t count)
|
||||
{
|
||||
lite().push(value, count);
|
||||
if (value == T{0}) [[unlikely]]
|
||||
if (value <= T{0}) [[unlikely]]
|
||||
++zero_count_;
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue