MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / get

Method get

pymongo/_csot.py:160–164  ·  view source on GitHub ↗

Get the min, or 0.0 if there aren't enough samples yet.

(self)

Source from the content-addressed store, hash-verified

158 self.samples.append(sample)
159
160 def get(self) -> float:
161 """Get the min, or 0.0 if there aren't enough samples yet."""
162 if len(self.samples) >= _MIN_RTT_SAMPLES:
163 return min(self.samples)
164 return 0.0
165
166 def reset(self) -> None:
167 self.samples.clear()

Callers 15

matched_countMethod · 0.45
modified_countMethod · 0.45
upserted_idMethod · 0.45
deleted_countMethod · 0.45
inserted_countMethod · 0.45
matched_countMethod · 0.45
modified_countMethod · 0.45
deleted_countMethod · 0.45
upserted_countMethod · 0.45
insert_resultsMethod · 0.45
update_resultsMethod · 0.45
delete_resultsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected