HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/botocore/retries/__pycache__/throttling.cpython-310.pyc
o

.&�a��@s.ddlmZedgd��ZGdd�de�ZdS)�)�
namedtuple�CubicParams��w_max�k�	last_failc@sBeZdZdZdZeefdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
S)�CubicCalculatorg�������?gffffff�?cCs&||_||_||_|��|_||_dS�N)�_w_max�_scale_constant�_beta�_calculate_zero_point�_k�
_last_fail)�self�starting_max_rate�
start_time�scale_constant�beta�r�=/usr/lib/python3/dist-packages/botocore/retries/throttling.py�__init__
s


zCubicCalculator.__init__cCs|jd|j|jd}|S)N�gUUUUUU�?)r
rr)rrrrrr
sz%CubicCalculator._calculate_zero_pointcCs(||j}|j||jd|j}|S)N�)rrrr
)r�	timestamp�dt�new_raterrr�success_receiveds
�z CubicCalculator.success_receivedcCs ||_|��|_||_||jSr	)r
r
rrr)r�current_raterrrr�error_receiveds

zCubicCalculator.error_receivedcCst|j|j|jd�S)aXReturn a read-only object of the current cubic parameters.

        These parameters are intended to be used for debug/troubleshooting
        purposes.  These object is a read-only snapshot and cannot be used
        to modify the behavior of the CUBIC calculations.

        New parameters may be added to this object in the future.

        r)rr
rr)rrrr�get_params_snapshot(s

�z#CubicCalculator.get_params_snapshotN)
�__name__�
__module__�__qualname__�_SCALE_CONSTANT�_BETArr
rrr rrrrrs
�	
rN)�collectionsrr�objectrrrrr�<module>s