Return True if the total number of open files is greater than the current threshold.
The threshold is defined as a fraction of the maximum possible number of concurrently open files (an operating system dependent amount). The fraction is retrieved and set with the OF_FRACTION function.
Returns : |
|
---|
Examples
In this example, the number of open files is equivalent to 75% of the maximum possible number of concurrently open files:
>>> cf.OF_FRACTION()
0.5
>>> print cf.open_files_threshold_exceeded()
True
>>> cf.OF_FRACTION(0.9)
>>> print cf.open_files_threshold_exceeded()
False