mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
More precise number of total events
This commit is contained in:
parent
72e5545c51
commit
713173a3a5
@ -394,7 +394,7 @@ bool PerfEventsCounters::processThreadLocalChanges(const std::string & needed_ev
|
||||
++opened_descriptors;
|
||||
closedir(fd_dir);
|
||||
|
||||
UInt64 fd_count_afterwards = opened_descriptors + NUMBER_OF_RAW_EVENTS;
|
||||
UInt64 fd_count_afterwards = opened_descriptors + events_to_open.size();
|
||||
UInt64 threshold = static_cast<UInt64>(maximum_open_descriptors * FILE_DESCRIPTORS_THRESHOLD);
|
||||
if (fd_count_afterwards > threshold)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user