Skip to content

Commit 7d100d5

Browse files
committed
DRIVERS-2035 Improve psuedocode a bit
1 parent 303f54d commit 7d100d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/server-discovery-and-monitoring/server-monitoring.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,11 +810,12 @@ on a dedicated connection, for example:
810810
helloOk = stableApi != Null
811811
lock = Mutex()
812812
movingAverage = MovingAverage()
813-
rttMin = MinWindow() # for min RTT calculation
813+
rttMin = MinWindow(max_window_size=10) # for min RTT calculation
814814
815815
def reset():
816816
with lock:
817817
movingAverage.reset()
818+
rttMin.reset()
818819
819820
def addSample(rtt):
820821
with lock:

0 commit comments

Comments
 (0)